🐛 Fixed new location override syntax

This commit is contained in:
GeoffreyCoulaud
2023-06-05 13:21:19 +02:00
parent 1e3e6484e4
commit 725bab5c93
5 changed files with 7 additions and 7 deletions

View File

@@ -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/")

View File

@@ -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()

View File

@@ -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):

View File

@@ -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:

View File

@@ -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()