From fdca4f775e629c578fe5961746c5a96506291058 Mon Sep 17 00:00:00 2001 From: Roy <88516395+moraroy@users.noreply.github.com> Date: Sat, 12 Aug 2023 19:50:54 -0700 Subject: [PATCH] Reverted back a push ~shutil wasnt working correctly --- NonSteamLaunchers.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/NonSteamLaunchers.sh b/NonSteamLaunchers.sh index 9af7f3e..b298662 100755 --- a/NonSteamLaunchers.sh +++ b/NonSteamLaunchers.sh @@ -3127,12 +3127,6 @@ if os.path.exists(os.path.join(compatdata_dir, 'NonSteamLaunchers')): # Define the new path of the NonSteamLaunchers folder new_path = os.path.join(compatdata_dir, str(first_app_id)) - # Check if the NonSteamLaunchers directory is empty - if os.listdir(current_path): - # The directory is not empty, so move its contents to the new location - for filename in os.listdir(current_path): - shutil.move(os.path.join(current_path, filename), new_path) - # Rename the NonSteamLaunchers folder os.rename(current_path, new_path) @@ -3140,7 +3134,7 @@ if os.path.exists(os.path.join(compatdata_dir, 'NonSteamLaunchers')): symlink_path = os.path.join(compatdata_dir, 'NonSteamLaunchers') # Create a symbolic link to the renamed NonSteamLaunchers folder - os.symlink(new_path, symlink_path) + os.symlink(new_path, symlink_path)" # TODO: might be better to relocate temp files to `/tmp` or even use `mktemp -d` since `rm -rf` is potentially dangerous without the `-i` flag # Delete NonSteamLaunchersInstallation subfolder in Downloads folder