Commit 437e309
committed
WSLg apps: XDG_SESSION_CLASS env + localsearch-3 system-UID drop-in
Two coupled fixes for GTK app dbus chain on WSLg dev VM:
1. mios-wsl-env-import.service: also push XDG_SESSION_CLASS=user
into the systemd user-bus + dbus activation environment.
localsearch-3.service (the renamed tracker3 indexer in Fedora 44)
has ConditionEnvironment=XDG_SESSION_CLASS=user. WSLg has no
display manager to set it, so the unit fails activation, dbus
returns ServiceUnknown for org.freedesktop.Tracker3.Miner.Files,
GTK apps querying SPARQL null-deref in their bookmark loader.
2. /etc/systemd/user/localsearch-3.service.d/10-mios-allow-system-uid.conf
(NEW drop-in, also applied to .control + .writeback siblings):
nullifies the upstream ConditionUser=!@System. MiOS dev VM
creates the mios user at UID 992 (system class, 0-999). Without
this drop-in, localsearch-3 still skips even with XDG_SESSION_CLASS
set because the user fails the @System check too.
This is a workaround. The proper fix is to create the mios user
with UID >= 1000 at install time (mios-bootstrap useradd -u 1000)
so the upstream condition naturally passes. Until that's wired up,
the drop-in keeps the dbus chain alive.
.gitignore: added allowlist entries for
/etc/systemd/user/<upstream-unit>.service.d/10-mios-*.conf so future
drop-ins targeting upstream units don't get silently dropped by
the etc/* deny pattern.
Operator-confirmed live 2026-05-10:
- localsearch-3.service: inactive -> active after the two fixes
- org.freedesktop.Tracker3.Miner.Files dbus activation now succeeds
- org.freedesktop.portal.Tracker (tinysparql-xdg-portal-3.service) active
Known gap NOT solved by this commit: nautilus flatpak STILL crashes
on the SPARQL backend lookup despite all the host-side services
being up. The flatpak's bundled libtracker-sparql is making a
different dbus call that the proxy filters out even with talk
permissions added to org.freedesktop.Tracker3.Miner.Files +
org.freedesktop.LocalSearch3 + org.freedesktop.portal.Tracker.
gnome-software (system pkg, not flatpak) survives and renders fine.
nautilus needs deeper flatpak-side investigation (possibly the
runtime's tracker3 protocol version mismatch with host service).1 parent 4411d57 commit 437e309
5 files changed
Lines changed: 67 additions & 2 deletions
File tree
- etc/systemd/user
- localsearch-3.service.d
- localsearch-control-3.service.d
- localsearch-writeback-3.service.d
- usr/lib/systemd/user
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
155 | 164 | | |
156 | 165 | | |
157 | 166 | | |
| |||
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
31 | 42 | | |
32 | 43 | | |
33 | 44 | | |
| |||
0 commit comments