mirror of
https://github.com/moraroy/NonSteamLaunchers-On-Steam-Deck.git
synced 2024-11-20 16:19:19 +01:00
Update NSLGameScanner.py
This commit is contained in:
parent
9c923e9e96
commit
b427eb2cb5
@ -600,8 +600,13 @@ if app_ids and not os.path.exists(non_steam_launchers_path):
|
|||||||
# Define the path of the symbolic link
|
# Define the path of the symbolic link
|
||||||
symlink_path = os.path.join(compatdata_dir, 'NonSteamLaunchers')
|
symlink_path = os.path.join(compatdata_dir, 'NonSteamLaunchers')
|
||||||
|
|
||||||
# Create a symbolic link to the renamed NonSteamLaunchers folder
|
# Check if the symlink already exists
|
||||||
os.symlink(new_path, symlink_path)
|
if not os.path.islink(symlink_path):
|
||||||
|
# Create a symbolic link to the renamed NonSteamLaunchers folder
|
||||||
|
os.symlink(new_path, symlink_path)
|
||||||
|
else:
|
||||||
|
print('Symlink for NonSteamLaunchers already exists')
|
||||||
|
|
||||||
|
|
||||||
#End of Refactoring python code from .sh file
|
#End of Refactoring python code from .sh file
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user