mirror of
https://github.com/moraroy/NonSteamLaunchers-On-Steam-Deck.git
synced 2024-12-21 15:21:52 +01:00
Made shortcut add check more stringent
We now check for all four variables before we create a shortcut, should resolve the issue with launchoptions = None for chrome based entries.
This commit is contained in:
parent
e3c7000d15
commit
a2ab295454
@ -306,7 +306,7 @@ def create_new_entry(shortcutdirectory, appname, launchoptions, startingdir):
|
|||||||
global shortcuts_updated
|
global shortcuts_updated
|
||||||
global created_shortcuts
|
global created_shortcuts
|
||||||
# Check if the launcher is installed
|
# Check if the launcher is installed
|
||||||
if not shortcutdirectory:
|
if not shortcutdirectory or not appname or not launchoptions or not startingdir:
|
||||||
print(f"{appname} is not installed. Skipping.")
|
print(f"{appname} is not installed. Skipping.")
|
||||||
return
|
return
|
||||||
exe_path = f"{shortcutdirectory}"
|
exe_path = f"{shortcutdirectory}"
|
||||||
|
Loading…
Reference in New Issue
Block a user