From 195f7dbb7eb4ad2a9c8b685e59aa9d8693890a96 Mon Sep 17 00:00:00 2001 From: GeoffreyCoulaud Date: Thu, 17 Aug 2023 14:07:04 +0200 Subject: [PATCH] Disabled Steam RetroArch to merge improvements to main --- src/importer/sources/retroarch_source.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/importer/sources/retroarch_source.py b/src/importer/sources/retroarch_source.py index 426b4ee..9eb3ee6 100644 --- a/src/importer/sources/retroarch_source.py +++ b/src/importer/sources/retroarch_source.py @@ -172,7 +172,8 @@ class RetroarchSource(Source): def __init__(self) -> None: super().__init__() - self.add_steam_location_candidate() + # TODO enable when we get the Steam RetroArch games work + # self.add_steam_location_candidate() def add_steam_location_candidate(self) -> None: """Add the Steam RetroAcrh location to the config candidates""" @@ -231,12 +232,13 @@ class RetroarchSource(Source): # Steam RetroArch # (Must check before Flatpak, because Steam itself can be installed as one) - if self.locations.config.root.parent.parent.name == "steamapps": - # steam://run exepects args to be url-encoded and separated by spaces. - args = map(lambda s: url_quote(str(s), safe=""), args) - args_str = " ".join(args) - uri = f"steam://run/1118310//{args_str}/" - return f"xdg-open {shell_quote(uri)}" + # TODO enable when we get Steam RetroArch executable to work + # if self.locations.config.root.parent.parent.name == "steamapps": + # # steam://run exepects args to be url-encoded and separated by spaces. + # args = map(lambda s: url_quote(str(s), safe=""), args) + # args_str = " ".join(args) + # uri = f"steam://run/1118310//{args_str}/" + # return f"xdg-open {shell_quote(uri)}" # Flatpak RetroArch args = map(lambda s: shell_quote(str(s)), args)