GNOME Bugzilla – Bug 569289
metacity should restart when crashed
Last modified: 2010-08-02 22:10:38 UTC
of the 3 required components in gnome-session, only the panel currently restarts automatically when it crashes. I think metacity should do the same. This can be done in two ways: either panel-session.c: call gnome_client_set_restart_style (client, GNOME_RESTART_IMMEDIATELY) or add X-GNOME-AutoRestart=true to the desktop file.
The behavior of Metacity is that it: - Restarts if it dies abnormally - SEGV, KILL, etc - Does not restart if killed with signals it catches like TERM or PIPE This seems like a reasonable behavior - why would you kill metacity with TERM if you wanted it to start immediately? [ Metacity uses libSM directly rather than gnome_client, so you may not have found this code in a grep, or it may have been broken when you filed this - this code got rewritten sometime early last year. ]
Doesn't gnome-session have support for automatic restarts of applications nowadays?
(In reply to comment #2) > Doesn't gnome-session have support for automatic restarts of applications > nowadays? How does that differ from what that is discussed above? (Which is, in fact, automatic restarts of applications by gnome-session
Sorry for the noise; I skipped over the last line when re-reading the original report (the line about X-GNOME-AutoRestart). Never mind.
It turns out that there is another twist here that makes it hard to notice that Metacity sets itself to autorestart -- gnome-session has trouble restarting applications unless it originally started them - see bug 625881.