From ea47652741c01fae1c48034b200bed78213ceccc Mon Sep 17 00:00:00 2001 From: Roy <88516395+moraroy@users.noreply.github.com> Date: Thu, 1 Feb 2024 05:26:33 -0800 Subject: [PATCH] check app name --- NonSteamLaunchers.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/NonSteamLaunchers.sh b/NonSteamLaunchers.sh index 88909db..8d0853d 100755 --- a/NonSteamLaunchers.sh +++ b/NonSteamLaunchers.sh @@ -2765,9 +2765,10 @@ def create_new_entry(shortcutdirectory, appname, launchoptions, startingdir): } } - # Check if an entry with the same appid already exists + # Check if an entry with the same appid and appname already exists for key in shortcuts['shortcuts'].keys(): - if shortcuts['shortcuts'][key]['appid'] == new_entry['appid']: + if (shortcuts['shortcuts'][key]['appid'] == new_entry['appid'] and + shortcuts['shortcuts'][key]['appname'] == new_entry['appname']): # A duplicate entry exists, so don't add the new entry return