fix(flatpak): give apps with host access the home folder and its ROMs mount

This commit is contained in:
The412Banner committed 2026-12-05 12:16:26 +00:00
1 parent 8a27ea841c
commit fe55ec24c1
3 files changed
+47 -8

No files matched your search

+4 -1
View File
@@ -69,7 +69,10 @@ screen under gamescope. Under gamescope it passes `--nosocket=wayland --socket=x
`XDG_SESSION_TYPE=x11`. Otherwise Flatpak finds the app compositor's `wayland-0` and the window
opens behind gamescope. gamescope's own Wayland socket is no alternative: Chromium on Wayland
asks the render node it names for a DRM version, which KGSL cannot give, and aborts. The
launcher also starts a session bus when there is none. On the Linux desktop, the apps' exported
launcher also starts a session bus when there is none. Flatpak's `host` permission skips `/root`,
since a desktop's homes live under `/home`, but the session's home is `/root`. An app granted `host`
and not `home` is therefore also given `home` in the same mode, which brings in the session's mounts
there, such as `/root/ROMs`. On the Linux desktop, the apps' exported
menu entries appear in Plasma's launcher. Games are wrapped through `droiddeck-gpu` like the
rootfs's own, since the desktop composites in software.