mirror of
https://github.com/moraroy/NonSteamLaunchers-On-Steam-Deck.git
synced 2024-12-21 07:11:52 +01:00
added extra check for AppName and Exe in existing shortcut check
This commit is contained in:
parent
1f41ecb9ae
commit
d2f6991d44
@ -308,6 +308,9 @@ def check_if_shortcut_exists(shortcut_id, display_name, exe_path, start_dir, lau
|
||||
if any(s.get('appname') == display_name and s.get('exe') == exe_path and s.get('StartDir') == start_dir and s.get('LaunchOptions') == launch_options for s in shortcuts['shortcuts'].values()):
|
||||
print(f"Existing shortcut found based on matching fields for game {display_name}. Skipping creation.")
|
||||
return True
|
||||
if any(s.get('AppName') == display_name and s.get('Exe') == exe_path and s.get('StartDir') == start_dir and s.get('LaunchOptions') == launch_options for s in shortcuts['shortcuts'].values()):
|
||||
print(f"Existing shortcut found based on matching fields for game {display_name}. Skipping creation.")
|
||||
return True
|
||||
#End of Code
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user