mirror of
https://github.com/aclist/dztui.git
synced 2026-11-16 23:01:53 +01:00
feat: support Ubuntu Snap path
This commit is contained in:
1 parent
da474e274f
commit
a32c99b3eb
3 files changed
+12
-1
No files matched your search
+10
-1
@@ -27,6 +27,7 @@ from dzgui.const.constants import (
|
||||
FLATPAK_STEAM_PATH,
|
||||
LIBRARYFOLDERS_PATH,
|
||||
REQUEST_TIMEOUT,
|
||||
UBUNTU_SNAP_STEAM_PATH,
|
||||
UBUNTU_STEAM_PATH,
|
||||
VDF_PATH,
|
||||
)
|
||||
@@ -75,15 +76,23 @@ def get_steam_paths() -> list[tuple[Path, str]]:
|
||||
FLATPAK_PATH = HOME.joinpath(FLATPAK_STEAM_PATH)
|
||||
UBUNTU_PATH = HOME.joinpath(UBUNTU_STEAM_PATH)
|
||||
DEBIAN_PATH = HOME.joinpath(DEBIAN_STEAM_PATH)
|
||||
UBUNTU_SNAP_PATH = HOME.joinpath(UBUNTU_SNAP_STEAM_PATH)
|
||||
|
||||
human = {
|
||||
DEFAULT_PATH: wizard.desc_default_path,
|
||||
FLATPAK_PATH: wizard.desc_flatpak_path,
|
||||
UBUNTU_PATH: wizard.desc_ubuntu_path,
|
||||
UBUNTU_SNAP_PATH: wizard.desc_ubuntu_snap_path,
|
||||
DEBIAN_PATH: wizard.desc_debian_path,
|
||||
}
|
||||
|
||||
for path in DEFAULT_PATH, FLATPAK_PATH, UBUNTU_PATH, DEBIAN_PATH:
|
||||
for path in (
|
||||
DEFAULT_PATH,
|
||||
FLATPAK_PATH,
|
||||
UBUNTU_PATH,
|
||||
UBUNTU_SNAP_PATH,
|
||||
DEBIAN_PATH,
|
||||
):
|
||||
if path is FLATPAK_PATH and has_flatpak_client() is False:
|
||||
continue
|
||||
if path is not FLATPAK_PATH and has_steam_client() is False:
|
||||
|
||||
@@ -60,6 +60,7 @@ DEFAULT_STEAM_PATH = ".local/share/Steam"
|
||||
FLATPAK_ROOT_PATH = ".var/app/com.valvesoftware.Steam"
|
||||
FLATPAK_STEAM_PATH = FLATPAK_ROOT_PATH + "/data/Steam"
|
||||
UBUNTU_STEAM_PATH = ".steam/steam"
|
||||
UBUNTU_SNAP_STEAM_PATH = "snap/steam/common/" + DEFAULT_STEAM_PATH
|
||||
DEBIAN_STEAM_PATH = ".steam/debian-installation"
|
||||
|
||||
LOG_FILTERS = ("CRITICAL", "WARNING", "INFO", "DEBUG")
|
||||
|
||||
@@ -17,6 +17,7 @@ desc_flatpak_path = (
|
||||
"This is the default Steam path if you are using <b>Flatpak Steam</b>."
|
||||
)
|
||||
desc_ubuntu_path = "This is the default Steam path on <b>Ubuntu-based systems</b>."
|
||||
desc_ubuntu_snap_path = "This is the default Steam path on <b>Ubuntu-based systems using Snap packages</b>."
|
||||
desc_debian_path = "This is the default Steam path on <b>Debian-based systems</b>."
|
||||
no_valid_paths = (
|
||||
"No valid Steam path or Steam command found on system. Please install Steam to continue."
|
||||
|
||||
Reference in new issue
Block a user