Add Steam darwin logic
This commit is contained in:
@@ -125,6 +125,8 @@ class URLExecutableSource(ExecutableFormatSource):
|
|||||||
return "start " + self.url_format
|
return "start " + self.url_format
|
||||||
case "linux":
|
case "linux":
|
||||||
return "xdg-open " + self.url_format
|
return "xdg-open " + self.url_format
|
||||||
|
case "darwin":
|
||||||
|
return "open " + self.url_format
|
||||||
case other:
|
case other:
|
||||||
raise NotImplementedError(
|
raise NotImplementedError(
|
||||||
f"No URL handler command available for {other}"
|
f"No URL handler command available for {other}"
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ class SteamLocations(NamedTuple):
|
|||||||
class SteamSource(URLExecutableSource):
|
class SteamSource(URLExecutableSource):
|
||||||
source_id = "steam"
|
source_id = "steam"
|
||||||
name = _("Steam")
|
name = _("Steam")
|
||||||
available_on = {"linux", "win32"}
|
available_on = {"linux", "win32", "darwin"}
|
||||||
iterable_class = SteamSourceIterable
|
iterable_class = SteamSourceIterable
|
||||||
url_format = "steam://rungameid/{game_id}"
|
url_format = "steam://rungameid/{game_id}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user