repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

docs(quickshell): diagnose dbus validation blocker

10e8dd6b97f125c76812f803a1e81b3545054306

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (1)

+162 / −0 text lines

Diff layout

docs/super/inventory/2026-06-17-quickshell-dbus-blocker-diagnosis.md

Added
new file mode 100644

+162 / −0 text lines

1# Quickshell DBus Blocker Diagnosis — 2026-06-17
2
3## Scope
4
5Read-only diagnosis of the user-session DBus blocker that prevents live native notification parity and reliable media/MPRIS validation from the agent shell.
6
7## Why this matters
8
9Phase 3 native notifications need Quickshell to own/use `org.freedesktop.Notifications`. Phase 4 media parity needs MPRIS over DBus. Current agent-shell and live-service probes show the user bus is unhealthy, so notification/media parity cannot be honestly accepted.
11## Live service boundary
13Old companions remain active:
15```text
16ironbar.service active
17ironbar-workspaces.service active
18mako.service active
19```
21Quickshell remains not live:
23```text
24quickshell.service inactive/not-found
25pgrep -a qs: empty
26```
28## Environment and socket inventory
30```text
31XDG_RUNTIME_DIR=/run/user/1000
32DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
33WAYLAND_DISPLAY=wayland-1
34HYPRLAND_INSTANCE_SIGNATURE=39d7e209c79d451efab1b21151d5938289da838d_1781295134_91246130
35```
37Sockets exist and listen:
39```text
40/run/user/1000/bus: socket exists
41/run/user/1000/systemd/private: socket exists
42ss shows /run/user/1000/bus LISTEN
43ss shows /run/user/1000/systemd/private LISTEN
44```
46Systemd user manager environment has the same DBus address.
48## Failing DBus clients
50Exact probes:
52```text
53busctl --user --list --no-pager
54→ Failed to list names: Transport endpoint is not connected
56dbus-send --session ... org.freedesktop.DBus.ListNames
57→ Failed to open connection to "session" message bus: Did not receive a reply...
59makoctl list
60→ Transport endpoint is not connected (System.Error.ENOTCONN)
62playerctl -l
63→ Error receiving data: Connection reset by peer
65notify-send ...
66→ Error receiving data: Connection reset by peer
67```
69These failures cover generic DBus listing, Mako notification control, MPRIS media listing, and notification sending.
71## Broker state
73User DBus units:
75```text
76dbus.socket active since Jun 12
77dbus-broker.service active since Jun 12
78```
80Broker process state:
82```text
83pid=1074
84FD count: 58
85FDSize: 128
86VmSize: 948688 kB
87VmRSS: 946820 kB
88Threads: 1
89```
91The broker RSS is extremely high for a user message bus. Recent service status included repeated broker messages:
93```text
94Peer :1.x is being disconnected as it does not have the resources to receive a reply or unicast signal it expects.
95```
97## Current Ironbar DBus fallout
99Live Ironbar is logging MPRIS DBus errors every second:
101```text
102ironbar::clients::music::mpris: D-Bus error getting MPRIS players:
103DBusError(TransportError(D-Bus error: Connection is closed
104(org.freedesktop.DBus.Error.Disconnected)))
105```
107The current Ironbar config contains the MPRIS music module:
109```json
110{
111 "type": "music",
112 "player_type": "mpris",
113 "format": "{title} / {artist}"
114}
115```
117This does not prove Ironbar caused the bus failure. It proves the live bar is affected and is continuously hitting the failed bus.
119## Root-cause confidence
121High confidence:
123- The failure is not only a missing `DBUS_SESSION_BUS_ADDRESS`; the variable is set in both agent env and systemd user env.
124- The bus socket exists and listens.
125- The broker process is alive.
126- Multiple independent clients fail against the same user bus.
127- Broker memory is abnormally high and broker logs mention peer resource disconnections.
129Working hypothesis:
131> The user DBus broker/session bus is wedged or resource-exhausted. This blocks notification and MPRIS validation until the bus is recovered.
133## Not mutated
135No services were restarted. No `systemctl --user restart dbus-broker.service`, no Mako/Ironbar restart, no live Quickshell service activation.
137## Human recovery options
139These are intentionally not run by the agent because they mutate the live desktop session.
141Least focused recovery to try manually:
143```sh
144systemctl --user restart dbus-broker.service
145```
147Then verify:
149```sh
150busctl --user --list --no-pager | head
151notify-send 'DBus recovered' 'notification path works'
152makoctl list
153playerctl -l || true
154```
156If user services fail to reconnect cleanly, restart affected companions:
158```sh
159systemctl --user restart mako.service ironbar.service ironbar-workspaces.service
160```
162Only after DBus recovery should Phase 3 native notification parity be retried.