mirror of
https://github.com/moraroy/NonSteamLaunchers-On-Steam-Deck.git
synced 2024-12-21 23:31:52 +01:00
Fix the casing of the properties used to check existing Steam shortcuts, for Glyph only because the rest are in a different PR
This commit is contained in:
parent
77a62166f5
commit
b4d39d5c11
@ -3165,8 +3165,8 @@ if glyphshortcutdirectory != '':
|
|||||||
# Create a new entry for the Steam shortcut
|
# Create a new entry for the Steam shortcut
|
||||||
new_entry = {
|
new_entry = {
|
||||||
'appid': f'{str(glyphappid)}',
|
'appid': f'{str(glyphappid)}',
|
||||||
'AppName': 'Glyph',
|
'appname': 'Glyph',
|
||||||
'Exe': '$glyphshortcutdirectory',
|
'exe': '$glyphshortcutdirectory',
|
||||||
'StartDir': '$glyphshortcutdirectory',
|
'StartDir': '$glyphshortcutdirectory',
|
||||||
'icon': '',
|
'icon': '',
|
||||||
'ShortcutPath': '',
|
'ShortcutPath': '',
|
||||||
@ -3187,18 +3187,18 @@ if glyphshortcutdirectory != '':
|
|||||||
entry_exists = False
|
entry_exists = False
|
||||||
if type(shortcuts['shortcuts']) == list:
|
if type(shortcuts['shortcuts']) == list:
|
||||||
for entry in shortcuts['shortcuts']:
|
for entry in shortcuts['shortcuts']:
|
||||||
entry.setdefault('AppName', '')
|
entry.setdefault('appname', '')
|
||||||
entry.setdefault('Exe', '')
|
entry.setdefault('exe', '')
|
||||||
if entry['AppName'] == new_entry['AppName'] and entry['Exe'] == new_entry['Exe']:
|
if entry['appname'] == new_entry['appname'] and entry['exe'] == new_entry['exe']:
|
||||||
entry_exists = True
|
entry_exists = True
|
||||||
break
|
break
|
||||||
if not entry_exists:
|
if not entry_exists:
|
||||||
shortcuts['shortcuts'].append(new_entry)
|
shortcuts['shortcuts'].append(new_entry)
|
||||||
elif type(shortcuts['shortcuts']) == dict:
|
elif type(shortcuts['shortcuts']) == dict:
|
||||||
for key in shortcuts['shortcuts'].keys():
|
for key in shortcuts['shortcuts'].keys():
|
||||||
shortcuts['shortcuts'][key].setdefault('AppName', '')
|
shortcuts['shortcuts'][key].setdefault('appname', '')
|
||||||
shortcuts['shortcuts'][key].setdefault('Exe', '')
|
shortcuts['shortcuts'][key].setdefault('exe', '')
|
||||||
if shortcuts['shortcuts'][key]['AppName'] == new_entry['AppName'] and shortcuts['shortcuts'][key]['Exe'] == new_entry['Exe']:
|
if shortcuts['shortcuts'][key]['appname'] == new_entry['appname'] and shortcuts['shortcuts'][key]['exe'] == new_entry['exe']:
|
||||||
entry_exists = True
|
entry_exists = True
|
||||||
break
|
break
|
||||||
if not entry_exists:
|
if not entry_exists:
|
||||||
|
Loading…
Reference in New Issue
Block a user