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 640457 - make sure gnome-shell exits last when shutting down
make sure gnome-shell exits last when shutting down
Status: RESOLVED DUPLICATE of bug 643437
Product: gnome-session
Classification: Core
Component: gnome-session
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Session Maintainers
Session Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-01-24 19:04 UTC by Matthias Clasen
Modified: 2011-03-01 04:40 UTC
See Also:
GNOME target: 3.0
GNOME version: ---



Description Matthias Clasen 2011-01-24 19:04:33 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.
Comment 1 Matthias Clasen 2011-01-27 04:54:15 UTC
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.
Comment 2 Dan Winship 2011-01-27 13:49:19 UTC
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.
Comment 3 Dan Winship 2011-01-27 13:50:31 UTC
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.
Comment 4 Jason Clinton 2011-02-02 00:56:49 UTC
(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?
Comment 5 Dan Winship 2011-02-02 14:45:29 UTC
no, those are different parts of the same mechanism. X-GNOME-Provides tells which required_components the app provides.
Comment 6 Matthias Clasen 2011-03-01 04:40:08 UTC

*** This bug has been marked as a duplicate of bug 643437 ***