GUI holds a stale D-Bus proxy after the service restarts underneath it #73

Closed
opened 2026-08-19 15:37:47 -04:00 by mysticalsoap · 0 comments
Owner

With the GUI running, restart the service (systemctl restart aqomui -- a package upgrade or crash recovery does the same): the next GUI action pops "Error: aqomui-service is not available -- Do you want restart it or quit aqomui?" even though the service is up. Hitting Restart re-acquires it (plus a polkit prompt for the restart itself) and everything works.

Cause: the GUI resolves its D-Bus proxy for org.aqomui.service once at startup; a service restart changes the name owner and the stale proxy's first call fails, which the GUI misreads as "service not available".

Fix direction: watch NameOwnerChanged for the service name (or re-get_object and retry once on a failed call) and only show the dialog when the name really has no owner.

Observed 2026-08-19 while live-verifying #68, but unrelated to it -- any service restart under a running GUI reproduces this.

With the GUI running, restart the service (`systemctl restart aqomui` -- a package upgrade or crash recovery does the same): the next GUI action pops "Error: aqomui-service is not available -- Do you want restart it or quit aqomui?" even though the service is up. Hitting Restart re-acquires it (plus a polkit prompt for the restart itself) and everything works. Cause: the GUI resolves its D-Bus proxy for `org.aqomui.service` once at startup; a service restart changes the name owner and the stale proxy's first call fails, which the GUI misreads as "service not available". Fix direction: watch `NameOwnerChanged` for the service name (or re-`get_object` and retry once on a failed call) and only show the dialog when the name really has no owner. Observed 2026-08-19 while live-verifying #68, but unrelated to it -- any service restart under a running GUI reproduces this.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
mysticalsoap/aqomui#73
No description provided.