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: fallback to $XDG_DATA_HOME instead of $HOME/.local/share for Flatpak #290

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
3 changes: 3 additions & 0 deletions packaging/flatpak/org.openwinecomponents.umu.umu-launcher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion umu/umu_consts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand Down