Skip to content

session: restart non-client apps that set AutoRestart#334

Open
vkareh wants to merge 1 commit intomasterfrom
autorestart-non-client-apps
Open

session: restart non-client apps that set AutoRestart#334
vkareh wants to merge 1 commit intomasterfrom
autorestart-non-client-apps

Conversation

@vkareh
Copy link
Copy Markdown
Member

@vkareh vkareh commented Apr 1, 2026

Apps like Orca set X-GNOME-AutoRestart=true in their .desktop files expecting to be restarted after a crash. However, the restart logic only handled apps that registered as XSMP or D-Bus clients. Non-client apps emitted "died"/"exited" signals but nothing subscribed to them. This bug was inherited from gnome-session.

Connect the "died" and "exited" signals on autostart apps to trigger restart for non-client apps with AutoRestart enabled. Also fall back to X-GNOME-AutoRestart when X-MATE-AutoRestart is not present, for compatibility with apps that only set the GNOME key.

Fixes #321

Apps like Orca set X-GNOME-AutoRestart=true in their .desktop files
expecting to be restarted after a crash. However, the restart logic only
handled apps that registered as XSMP or D-Bus clients. Non-client apps
emitted "died"/"exited" signals but nothing subscribed to them. This bug
was inherited from gnome-session.

Connect the "died" and "exited" signals on autostart apps to trigger
restart for non-client apps with AutoRestart enabled. Also fall back to
X-GNOME-AutoRestart when X-MATE-AutoRestart is not present, for
compatibility with apps that only set the GNOME key.

Fixes #321
@vkareh vkareh requested a review from a team April 1, 2026 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

X-MATE-AutoRestart doesn't work for non-client apps

1 participant