Skip to content

Commit

Permalink
Reverted back a push
Browse files Browse the repository at this point in the history
~shutil wasnt working correctly
  • Loading branch information
moraroy authored Aug 13, 2023
1 parent 292c57b commit fdca4f7
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions NonSteamLaunchers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3127,20 +3127,14 @@ 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)
# Define the path of the symbolic link
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
Expand Down

0 comments on commit fdca4f7

Please sign in to comment.