Use shared.home consistently
This commit is contained in:
@@ -128,7 +128,7 @@ class Game(Gtk.Box):
|
|||||||
# pylint: disable=consider-using-with
|
# pylint: disable=consider-using-with
|
||||||
subprocess.Popen(
|
subprocess.Popen(
|
||||||
args,
|
args,
|
||||||
cwd=Path.home(),
|
cwd=shared.home,
|
||||||
shell=True,
|
shell=True,
|
||||||
start_new_session=True,
|
start_new_session=True,
|
||||||
creationflags=subprocess.CREATE_NEW_PROCESS_GROUP if os.name == "nt" else 0, # type: ignore
|
creationflags=subprocess.CREATE_NEW_PROCESS_GROUP if os.name == "nt" else 0, # type: ignore
|
||||||
|
|||||||
@@ -241,7 +241,7 @@ class LegendaryIterable(StoreSubSourceIterable):
|
|||||||
else:
|
else:
|
||||||
# Heroic native
|
# Heroic native
|
||||||
logging.debug("Using Heroic native <= 2.8 legendary file")
|
logging.debug("Using Heroic native <= 2.8 legendary file")
|
||||||
path = Path.home() / ".config"
|
path = shared.home / ".config"
|
||||||
|
|
||||||
path = path / "legendary" / "installed.json"
|
path = path / "legendary" / "installed.json"
|
||||||
logging.debug("Using Heroic %s installed.json path %s", self.name, path)
|
logging.debug("Using Heroic %s installed.json path %s", self.name, path)
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ from pathlib import Path
|
|||||||
|
|
||||||
from src import shared
|
from src import shared
|
||||||
|
|
||||||
old_data_dir = Path.home() / ".local" / "share"
|
old_data_dir = shared.home / ".local" / "share"
|
||||||
old_cartridges_data_dir = old_data_dir / "cartridges"
|
old_cartridges_data_dir = old_data_dir / "cartridges"
|
||||||
migrated_file_path = old_cartridges_data_dir / ".migrated"
|
migrated_file_path = old_cartridges_data_dir / ".migrated"
|
||||||
old_games_dir = old_cartridges_data_dir / "games"
|
old_games_dir = old_cartridges_data_dir / "games"
|
||||||
|
|||||||
Reference in New Issue
Block a user