Add Steam darwin logic
This commit is contained in:
@@ -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}"
|
||||
|
||||
@@ -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}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user