Add Steam darwin logic

This commit is contained in:
kramo
2024-06-29 03:14:07 +02:00
parent 57db530af5
commit 8640e37252
2 changed files with 3 additions and 1 deletions

View File

@@ -125,6 +125,8 @@ class URLExecutableSource(ExecutableFormatSource):
return "start " + self.url_format
case "linux":
return "xdg-open " + self.url_format
case "darwin":
return "open " + self.url_format
case other:
raise NotImplementedError(
f"No URL handler command available for {other}"

View File

@@ -112,7 +112,7 @@ class SteamLocations(NamedTuple):
class SteamSource(URLExecutableSource):
source_id = "steam"
name = _("Steam")
available_on = {"linux", "win32"}
available_on = {"linux", "win32", "darwin"}
iterable_class = SteamSourceIterable
url_format = "steam://rungameid/{game_id}"