From 274acc8e7e3c40b6696de82b25b78bee5e30eebc Mon Sep 17 00:00:00 2001 From: Roy <88516395+moraroy@users.noreply.github.com> Date: Sun, 21 Jan 2024 00:04:32 -0800 Subject: [PATCH] Fixed Duplication on the NonSteamLaunchers.sh --- NonSteamLaunchers.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/NonSteamLaunchers.sh b/NonSteamLaunchers.sh index 83ff3b4..aa91086 100755 --- a/NonSteamLaunchers.sh +++ b/NonSteamLaunchers.sh @@ -2858,6 +2858,12 @@ def create_new_entry(shortcutdirectory, appname, launchoptions, startingdir): } } + # Check if an entry with the same appid already exists + for key in shortcuts['shortcuts'].keys(): + if shortcuts['shortcuts'][key]['appid'] == new_entry['appid']: + # A duplicate entry exists, so don't add the new entry + return + # Add the new entry to the shortcuts dictionary entry_exists = False