GNOME Bugzilla – Bug 334215
Incomplete session management
Last modified: 2011-06-18 11:15:58 UTC
I don´t know whether this is the right category for this, sorry if I´m wrong. I just started using GNOME and while it´s very impressive one I really miss of the KDE features, session management. I mean if I exit an app with maximized window I expect it to be maximized on the next start. For example if I open "my home" in nautilus I´ve to press "maximize" every time. Is this a bug and not working on my machine or doesn´t GNOME have an infrastructure for that? Other information:
Created attachment 61388 [details] [review] Proposed patch The attached patch adds session management to Nautilus, preserving the sidebar history and reopening previously open windows.
*** Bug 139608 has been marked as a duplicate of this bug. ***
*** Bug 306417 has been marked as a duplicate of this bug. ***
http://mail.gnome.org/archives/nautilus-list/2006-March/msg00074.html
Is there a difference under gnome with saving the session data when a program is closed by gnome exit (to be run when gnome is restarted) or closed regularly (for the same appearance when the app is restarted)? Or is the x session manager used for restarting the apps between gnome sessions?
*** Bug 337366 has been marked as a duplicate of this bug. ***
Fixed in Nautilus 2.15, using another patch [1]. [1] http://mail.gnome.org/archives/nautilus-list/2006-June/000042.html Michael: > Is there a difference under gnome with saving the session data when a program > is closed by gnome exit (to be run when gnome is restarted) or closed > regularly (for the same appearance when the app is restarted)? When closing Nautilus using "nautilus --quit", or "gnome-session-remove", the session is not saved. The main loop will simply quit. The key element is the session manager which asks Nautilus to save its session data when the user logs out, or more precisely when a specific save callback is invoked. A logout request or "gnome-session-save" will make Nautilus save all the session data in a callback handler, and set its restart command to a new value ("nautilus --load-session ~/.nautilus/where-we-saved-the-session-data". > Or is the x session manager used for restarting the apps between gnome sessions? Exactly.
Thanks for the explanation :) So do you have to code the feature (remembering the window state) twice, one time for restarts in a session and one time for supporting the session manager (and thus restart on session restore? Or can the session manager also be used for remembering "in-session"? I´ve found this "bug" in many GNOME apps and if it´s an architectural thing I don´t want to resport this for every app.
It's been about five years here and I for one have problems with nautilus sessions not restoring from time to time. And worse than that I have no recovery option to go to a 'previously' good session. Any hope for me and those like me? :-)