From a2ab295454de9ef72cd180fe993ee69d5bdf3e8e Mon Sep 17 00:00:00 2001 From: sysmoon14 <61550824+sysmoon14@users.noreply.github.com> Date: Fri, 9 Feb 2024 09:21:00 +0000 Subject: [PATCH] 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. --- NSLGameScanner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NSLGameScanner.py b/NSLGameScanner.py index 7702f2f..ee5b41f 100644 --- a/NSLGameScanner.py +++ b/NSLGameScanner.py @@ -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}"