After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 569289 - metacity should restart when crashed
metacity should restart when crashed
Status: RESOLVED NOTABUG
Product: metacity
Classification: Other
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Metacity maintainers list
Metacity maintainers list
Depends on:
Blocks:
 
 
Reported: 2009-01-27 05:23 UTC by Matthias Clasen
Modified: 2010-08-02 22:10 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Matthias Clasen 2009-01-27 05:23:46 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.
Comment 1 Owen Taylor 2010-08-02 21:14:43 UTC
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. ]
Comment 2 Wouter Bolsterlee (uws) 2010-08-02 21:54:27 UTC
Doesn't gnome-session have support for automatic restarts of applications nowadays?
Comment 3 Owen Taylor 2010-08-02 21:58:36 UTC
(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
Comment 4 Wouter Bolsterlee (uws) 2010-08-02 22:02:01 UTC
Sorry for the noise; I skipped over the last line when re-reading the original report (the line about X-GNOME-AutoRestart). Never mind.
Comment 5 Owen Taylor 2010-08-02 22:10:38 UTC
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.