From ef62dffd6755eb513a76ce8bc0ce516eff74844d Mon Sep 17 00:00:00 2001 From: R1kaB3rN <100738684+R1kaB3rN@users.noreply.github.com> Date: Sun, 24 Nov 2024 14:38:07 -0800 Subject: [PATCH 1/2] umu_consts: fallback to $XDG_DATA_HOME for umu Flatpak --- 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 82b44ee1..cfbc3ee8 100644 --- a/umu/umu_consts.py +++ b/umu/umu_consts.py @@ -45,7 +45,7 @@ class GamescopeAtom(Enum): XDG_DATA_HOME: Path = ( Path(os.environ["HOST_XDG_DATA_HOME"]) if os.environ.get("HOST_XDG_DATA_HOME") - else Path.home().joinpath(".local", "share") + else Path(os.environ["XDG_DATA_HOME"]) ) elif os.environ.get("SNAP"): XDG_DATA_HOME: Path = Path(os.environ["SNAP_REAL_HOME"]) From 620d4207ccc0cbbffada402538a595ded3a9ab52 Mon Sep 17 00:00:00 2001 From: R1kaB3rN <100738684+R1kaB3rN@users.noreply.github.com> Date: Sun, 24 Nov 2024 15:17:25 -0800 Subject: [PATCH 2/2] flatpak: add filesystem permission xdg-data/umu:create --- packaging/flatpak/org.openwinecomponents.umu.umu-launcher.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packaging/flatpak/org.openwinecomponents.umu.umu-launcher.yml b/packaging/flatpak/org.openwinecomponents.umu.umu-launcher.yml index 10325685..bc07ea67 100644 --- a/packaging/flatpak/org.openwinecomponents.umu.umu-launcher.yml +++ b/packaging/flatpak/org.openwinecomponents.umu.umu-launcher.yml @@ -64,6 +64,9 @@ finish-args: # Pressure Vessel # See https://github.com/flathub/com.valvesoftware.Steam/commit/0538256facdb0837c33232bc65a9195a8a5bc750 - --env=XDG_DATA_DIRS=/app/share:/usr/lib/extensions/vulkan/share:/usr/share:/usr/share/runtime/share:/run/host/user-share:/run/host/share:/usr/lib/pressure-vessel/overrides/share + # umu + # Use host's $XDG_DATA_HOME, otherwise Flatpak's + - --filesystem=xdg-data/umu:create add-extensions: org.freedesktop.Platform.Compat.i386: