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 644529 - session: Change XSMP restart style to Never
session: Change XSMP restart style to Never
Status: RESOLVED FIXED
Product: mutter
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: mutter-maint
mutter-maint
Depends on:
Blocks:
 
 
Reported: 2011-03-11 19:10 UTC by Colin Walters
Modified: 2011-03-17 17:49 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
session: Change XSMP restart style to Never (1.27 KB, patch)
2011-03-11 19:10 UTC, Colin Walters
needs-work Details | Review
session: Don't set XSMP restart (1.27 KB, patch)
2011-03-14 14:02 UTC, Colin Walters
committed Details | Review

Description Colin Walters 2011-03-11 19:10:49 UTC
This made sense back in the day of stateless window managers,
but gnome-shell isn't.  gnome-session will handle gnome-shell
crashing, since it's a required component.
Comment 1 Colin Walters 2011-03-11 19:10:52 UTC
Created attachment 183175 [details] [review]
session: Change XSMP restart style to Never
Comment 2 Colin Walters 2011-03-11 19:11:12 UTC
See also work in https://bugzilla.gnome.org/show_bug.cgi?id=642497
Comment 3 Dan Winship 2011-03-14 13:27:45 UTC
Comment on attachment 183175 [details] [review]
session: Change XSMP restart style to Never

>+    char hint = SmRestartNever;

SmRestartNever means that even if the user has session saving enabled, mutter/gnome-shell will not save its state, and so window geometry will not be saved between sessions.

If that's not what you intended, then you meant SmRestartIfRunning.

If that is what you intended, then you should get rid of all of the session saving support, since it will be dead code. At that point you should probably also get rid of libSM and use the gnome-session D-Bus interface instead.
Comment 4 Colin Walters 2011-03-14 14:02:04 UTC
Created attachment 183340 [details] [review]
session: Don't set XSMP restart

This made sense back in the day of stateless window managers,
but gnome-shell isn't.  gnome-session will handle gnome-shell
crashing, since it's a required component.
Comment 5 Dan Winship 2011-03-16 14:20:42 UTC
Comment on attachment 183340 [details] [review]
session: Don't set XSMP restart

It does what it says it does, though I'm not convinced about the logic. I can't think why any libmutter user would not want to be restarted on crash.

meta_session_shutdown() is a no-op now.
Comment 6 Colin Walters 2011-03-16 14:30:57 UTC
(In reply to comment #5)
> (From update of attachment 183340 [details] [review])
> It does what it says it does, though I'm not convinced about the logic. I can't
> think why any libmutter user would not want to be restarted on crash.

Any libmutter user (i.e. gnome-shell) can hook into gnome-session differently to handle restarting in a better way - see the bug I linked above:
https://bugzilla.gnome.org/show_bug.cgi?id=642497

(Basically there is a "Try Recovery" button in this case)

> meta_session_shutdown() is a no-op now.

Ok, will remove.
Comment 7 Colin Walters 2011-03-17 17:49:29 UTC
Attachment 183340 [details] pushed as 3cd0e86 - session: Don't set XSMP restart