mirror of
https://github.com/lutris/lutris
synced 2024-09-15 22:09:55 +00:00
Reverse prefered order of Lutris shortcuts
This commit is contained in:
parent
89bd6c6138
commit
132dfdb805
|
@ -43,9 +43,9 @@ def get_xdg_basename(game_slug, game_id, base_dir=None):
|
|||
# When base dir is provided, lookup possible combinations
|
||||
# and return the first match
|
||||
for path in [
|
||||
"{}.desktop".format(game_slug),
|
||||
"{}-{}.desktop".format(game_slug, game_id),
|
||||
"net.lutris.{}-{}.desktop".format(game_slug, game_id),
|
||||
"{}-{}.desktop".format(game_slug, game_id),
|
||||
"{}.desktop".format(game_slug),
|
||||
]:
|
||||
if system.path_exists(os.path.join(base_dir, path)):
|
||||
return path
|
||||
|
|
Loading…
Reference in a new issue