🐛 Fixed new location override syntax
This commit is contained in:
@@ -62,7 +62,7 @@ class BottlesLinuxSource(BottlesSource, LinuxSource):
|
||||
executable_format = 'xdg-open bottles:run/"{bottle_name}"/"{game_name}"'
|
||||
|
||||
@property
|
||||
@Source.replaced_by_schema_key()
|
||||
@BottlesSource.replaced_by_schema_key()
|
||||
@replaced_by_path("~/.var/app/com.usebottles.bottles/data/bottles/")
|
||||
@replaced_by_env_path("XDG_DATA_HOME", "bottles/")
|
||||
@replaced_by_path("~/.local/share/bottles/")
|
||||
|
||||
@@ -130,7 +130,7 @@ class HeroicLinuxSource(HeroicSource, LinuxSource):
|
||||
executable_format = "xdg-open heroic://launch/{app_name}"
|
||||
|
||||
@property
|
||||
@Source.replaced_by_schema_key()
|
||||
@HeroicSource.replaced_by_schema_key()
|
||||
@replaced_by_path("~/.var/app/com.heroicgameslauncher.hgl/config/heroic/")
|
||||
@replaced_by_env_path("XDG_CONFIG_HOME", "heroic/")
|
||||
@replaced_by_path("~/.config/heroic/")
|
||||
@@ -143,7 +143,7 @@ class HeroicWindowsSource(HeroicSource, WindowsSource):
|
||||
executable_format = "start heroic://launch/{app_name}"
|
||||
|
||||
@property
|
||||
@Source.replaced_by_schema_key()
|
||||
@HeroicSource.replaced_by_schema_key()
|
||||
@replaced_by_env_path("appdata", "heroic/")
|
||||
def location(self) -> Path:
|
||||
raise FileNotFoundError()
|
||||
|
||||
@@ -76,7 +76,7 @@ class LutrisLinuxSource(LutrisSource, LinuxSource):
|
||||
executable_format = "xdg-open lutris:rungameid/{game_id}"
|
||||
|
||||
@property
|
||||
@Source.replaced_by_schema_key()
|
||||
@LutrisSource.replaced_by_schema_key()
|
||||
@replaced_by_path("~/.var/app/net.lutris.Lutris/data/lutris/")
|
||||
@replaced_by_path("~/.local/share/lutris/")
|
||||
def location(self):
|
||||
|
||||
@@ -49,7 +49,7 @@ class Source(Iterable):
|
||||
def __init__(self) -> None:
|
||||
super().__init__()
|
||||
self.available_on = set()
|
||||
self.update_location_schema_key()
|
||||
|
||||
|
||||
@property
|
||||
def full_name(self) -> str:
|
||||
|
||||
@@ -105,7 +105,7 @@ class SteamLinuxSource(SteamSource, LinuxSource):
|
||||
executable_format = "xdg-open steam://rungameid/{game_id}"
|
||||
|
||||
@property
|
||||
@Source.replaced_by_schema_key()
|
||||
@SteamSource.replaced_by_schema_key()
|
||||
@replaced_by_path("~/.var/app/com.valvesoftware.Steam/data/Steam/")
|
||||
@replaced_by_env_path("XDG_DATA_HOME", "Steam/")
|
||||
@replaced_by_path("~/.steam/")
|
||||
@@ -119,7 +119,7 @@ class SteamWindowsSource(SteamSource, WindowsSource):
|
||||
executable_format = "start steam://rungameid/{game_id}"
|
||||
|
||||
@property
|
||||
@Source.replaced_by_schema_key()
|
||||
@SteamSource.replaced_by_schema_key()
|
||||
@replaced_by_env_path("programfiles(x86)", "Steam")
|
||||
def location(self):
|
||||
raise FileNotFoundError()
|
||||
|
||||
Reference in New Issue
Block a user