Fixed Major Library Disappear Bug

~reworked code to write to vdf after steam is closed, this was causing library's to "disappear". 

Your games and files are safe, your library is backed up in a file in your config directory called "shortcuts.vdf.bak" if corrupted just change the name to shortcuts.vdf
This commit is contained in:
Roy 2023-05-19 14:16:19 -07:00 committed by GitHub
parent 7f160c26eb
commit 9d6874c559
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,7 @@ chmod +x "$0"
set -x
version=v2.7
version=v2.71
check_for_updates() {
# Set the URL to the GitHub API for the repository
@ -2190,6 +2190,15 @@ fi
# Delete NonSteamLaunchersInstallation subfolder in Downloads folder
rm -rf ~/Downloads/NonSteamLaunchersInstallation
# Detach script from Steam process
nohup sh -c 'sleep 10; /usr/bin/steam' &
# Close all instances of Steam
killall steam &
@ -2877,12 +2886,3 @@ with open('$shortcuts_vdf_path', 'wb') as f:
# Delete NonSteamLaunchersInstallation subfolder in Downloads folder
rm -rf ~/Downloads/NonSteamLaunchersInstallation
# Detach script from Steam process
nohup sh -c 'sleep 10; /usr/bin/steam' &
# Close all instances of Steam
killall steam