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:
sysmoon14 2024-02-09 09:21:00 +00:00 committed by GitHub
parent e3c7000d15
commit a2ab295454
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -306,7 +306,7 @@ def create_new_entry(shortcutdirectory, appname, launchoptions, startingdir):
global shortcuts_updated
global created_shortcuts
# 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.")
return
exe_path = f"{shortcutdirectory}"