Skip to content

Commit

Permalink
umu_consts: update FLATPAK_PATH
Browse files Browse the repository at this point in the history
- Flatpak guarantees the existence of XDG_DATA_HOME and other XDG environment variables
  • Loading branch information
R1kaB3rN committed Jun 29, 2024
1 parent 793768f commit 3c4615c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion umu/umu_consts.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Color(Enum):
FLATPAK_ID = environ.get("FLATPAK_ID") or ""

FLATPAK_PATH: Path | None = (
Path(XDG_DATA_HOME, "umu") if FLATPAK_ID and XDG_DATA_HOME else None
Path(environ["XDG_DATA_HOME"], "umu") if FLATPAK_ID else None
)

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

0 comments on commit 3c4615c

Please sign in to comment.