Commit 397b455
committed
WSLg native-app integration: export XDG_DATA_DIRS to systemd user-bus
Operator 2026-05-10: "flatpak apps no longer showing in windows as
native apps". Root cause: WSLg's app-list-monitor service scans
XDG_DATA_DIRS for .desktop files and registers them as Windows
Start Menu entries via RDP-RAIL. The systemd-user-bus session
XDG_DATA_DIRS was EMPTY -- so the monitor only found system
/usr/share/applications/*.desktop and missed every flatpak's
exports/share/applications/. Result: zero Windows-side Start Menu
integration for installed flatpak GUI apps (Epiphany, Nautilus,
gnome-software, codium, Flatseal, ExtensionManager).
Fix: mios-wsl-env-import.service now sets + propagates
XDG_DATA_DIRS=/var/home/mios/.local/share/flatpak/exports/share:
/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
into the systemd-user-bus + dbus activation environment.
Order rationale:
~/.local first -- per-user flatpak installs (operator-added)
/var/lib next -- system-wide flatpak installs (mios overlay)
/usr/local -- standard XDG fallback
/usr -- distro vendor desktop files
After the next user-bus startup (or `systemctl --user restart
mios-wsl-env-import.service`), WSLg's monitor discovers all six
of MiOS's bundled flatpaks and registers them as Windows native
apps.1 parent 8f29504 commit 397b455
1 file changed
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
42 | 52 | | |
43 | 53 | | |
44 | 54 | | |
| |||
0 commit comments