GNOME Bugzilla – Bug 640457
make sure gnome-shell exits last when shutting down
Last modified: 2011-03-01 04:40:08 UTC
Recently, I've noticed that I see 'naked' windows during shutdown. I think we should make sure that we keep the shell around until the very end.
I could not find any code trying to handle this, contrary to what Ray was saying... Some old discussion of this very same problem can be found in bug 144107.
gnome-session is supposed to shut things down in reverse order from what they were started in (though I don't know if it currently does), but of course everything that doesn't register with gnome-session will stay around until X is killed. In bug 144107 I said: > If the SM tells an XSMP client to Die, > the client should die. Also, we want the right thing to happen if the user is > using a different window manager as well. But I don't think either of those apply now. We don't care about supporting XSMP, except to the extent that gnome-session currently uses it, and we don't care about other window managers. So we could just make mutter ignore Die(). That's probably the simplest fix.
Although, to avoid running into problems if we ever wanted to use mutter in gdm, we should make mutter still exit by default on Die, but make gnome-shell override that.
(In reply to comment #2) > gnome-session is supposed to shut things down in reverse order from what they > were started in (though I don't know if it currently does), but of course > everything that doesn't register with gnome-session will stay around until X is > killed. Is the root cause possibly that the gnome-shell.desktop file has: X-GNOME-Autostart-Phase=WindowManager X-GNOME-Provides=panel;windowmanager; which is a different mechanism than the old: /desktop/gnome/session/required_components method?
no, those are different parts of the same mechanism. X-GNOME-Provides tells which required_components the app provides.
*** This bug has been marked as a duplicate of bug 643437 ***