From 725bab5c9306b0150dc372f67a5e2f90df7eb572 Mon Sep 17 00:00:00 2001 From: GeoffreyCoulaud Date: Mon, 5 Jun 2023 13:21:19 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fixed=20new=20location=20overrid?= =?UTF-8?q?e=20syntax?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/importer/sources/bottles_source.py | 2 +- src/importer/sources/heroic_source.py | 4 ++-- src/importer/sources/lutris_source.py | 2 +- src/importer/sources/source.py | 2 +- src/importer/sources/steam_source.py | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/importer/sources/bottles_source.py b/src/importer/sources/bottles_source.py index b2c0a2d..4abc3f3 100644 --- a/src/importer/sources/bottles_source.py +++ b/src/importer/sources/bottles_source.py @@ -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/") diff --git a/src/importer/sources/heroic_source.py b/src/importer/sources/heroic_source.py index 998bf65..3515125 100644 --- a/src/importer/sources/heroic_source.py +++ b/src/importer/sources/heroic_source.py @@ -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() diff --git a/src/importer/sources/lutris_source.py b/src/importer/sources/lutris_source.py index 1633445..d9b8c35 100644 --- a/src/importer/sources/lutris_source.py +++ b/src/importer/sources/lutris_source.py @@ -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): diff --git a/src/importer/sources/source.py b/src/importer/sources/source.py index cd9857d..904368b 100644 --- a/src/importer/sources/source.py +++ b/src/importer/sources/source.py @@ -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: diff --git a/src/importer/sources/steam_source.py b/src/importer/sources/steam_source.py index cff8c87..fbde1be 100644 --- a/src/importer/sources/steam_source.py +++ b/src/importer/sources/steam_source.py @@ -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()