Fixed Steam Restart

~fixed Steam Restart
~Script Works in Gaming Mode Now
This commit is contained in:
moraroy 2023-05-04 21:26:39 -07:00 committed by GitHub
parent b9c2d2733a
commit fb10793b42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,7 @@ chmod +x "$0"
set -x
version=v1.3
version=v1.4
check_for_updates() {
# Set the URL to the GitHub API for the repository
@ -1098,8 +1098,6 @@ elif [[ -f "$legacygames_path2" ]]; then
fi
# Close Steam
killall steam
@ -1566,11 +1564,21 @@ with open('$shortcuts_vdf_path', 'wb') as f:
# Delete NonSteamLaunchersInstallation subfolder in Downloads folder
rm -rf ~/Downloads/NonSteamLaunchersInstallation
wait
sleep 10
# Restart Steam
/usr/bin/steam
exit
# Detach script from Steam process
nohup sh -c 'sleep 10; /usr/bin/steam' &
# Close all instances of Steam
killall steam