Skip to content

Commit

Permalink
umu_consts: update standard paths for cache and runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
R1kaB3rN authored and strycore committed Oct 14, 2024
1 parent da51abd commit 4edbc86
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions umu/umu_consts.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,14 @@
"getnativepath",
}

# Installation path of the runtime files
# Installation path of the runtime files.
# Flatpak will be detected as outlined by systemd
# See https://systemd.io/CONTAINER_INTERFACE
UMU_LOCAL: Path = (
Path.home().joinpath(
".var", "app", "org.openwinecomponents.umu.umu-launcher", "data", "umu"
)
if os.environ.get("container") == "flatpak" # noqa: SIM112
else Path.home().joinpath(".local", "share", "umu")
)
UMU_LOCAL: Path = Path.home().joinpath(".local", "share", "umu")

# Temporary directory for downloaded resources moved from tmpfs
UMU_CACHE: Path = (
Path.home().joinpath(
".var",
"app",
"org.openwinecomponents.umu.umu-launcher",
"cache",
"umu",
)
Path(os.environ["XDG_CACHE_HOME"], "umu")
if os.environ.get("container") == "flatpak" # noqa: SIM112
else Path.home().joinpath(".cache", "umu")
)
Expand Down

0 comments on commit 4edbc86

Please sign in to comment.