Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use $HOME/.local/share/umu and $XDG_CACHE_HOME for flatpak #229

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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")
R1kaB3rN marked this conversation as resolved.
Show resolved Hide resolved

# 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
Loading