Skip to content

Commit

Permalink
umu_consts: fix runtime path for flatpak
Browse files Browse the repository at this point in the history
- XDG_DATA_HOME would only be valid for the umu flatpak or if a client is calling our flatpak app. Since Heroic and Lutris are including umu in their runtime, with the current logic, the runtime will be stored in their private home directory which is not what we want
  • Loading branch information
R1kaB3rN committed Jul 28, 2024
1 parent 7e00027 commit 08fa6f5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion umu/umu_consts.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ class Color(Enum):
FLATPAK_ID = os.environ.get("FLATPAK_ID") or ""

FLATPAK_PATH: Path | None = (
Path(os.environ["XDG_DATA_HOME"], "umu") if FLATPAK_ID else None
Path.home().joinpath(
".var", "app", "org.openwinecomponents.umu.umu-launcher", "data", "umu"
)
if FLATPAK_ID
else None
)

UMU_LOCAL: Path = FLATPAK_PATH or Path.home().joinpath(
Expand Down

0 comments on commit 08fa6f5

Please sign in to comment.