From 3c4615c48dcffa47712f6e6606abfc5e3c1f0a05 Mon Sep 17 00:00:00 2001 From: R1kaB3rN <100738684+R1kaB3rN@users.noreply.github.com> Date: Fri, 28 Jun 2024 18:35:20 -0700 Subject: [PATCH] umu_consts: update FLATPAK_PATH - Flatpak guarantees the existence of XDG_DATA_HOME and other XDG environment variables --- umu/umu_consts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umu/umu_consts.py b/umu/umu_consts.py index 116febf6c..16a6fba7f 100644 --- a/umu/umu_consts.py +++ b/umu/umu_consts.py @@ -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(