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 334215 - Incomplete session management
Incomplete session management
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: general
2.15.x
Other All
: Normal minor
: ---
Assigned To: Christian Neumair
Nautilus Maintainers
: 139608 306417 337366 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-03-11 13:37 UTC by Michael Stather
Modified: 2011-06-18 11:15 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16


Attachments
Proposed patch (22.30 KB, patch)
2006-03-16 19:50 UTC, Christian Neumair
none Details | Review

Description Michael Stather 2006-03-11 13:37:27 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:
Comment 1 Christian Neumair 2006-03-16 19:50:02 UTC
Created attachment 61388 [details] [review]
Proposed patch

The attached patch adds session management to Nautilus, preserving the sidebar history and reopening previously open windows.
Comment 2 Christian Neumair 2006-03-16 19:51:51 UTC
*** Bug 139608 has been marked as a duplicate of this bug. ***
Comment 3 Christian Neumair 2006-03-16 19:53:02 UTC
*** Bug 306417 has been marked as a duplicate of this bug. ***
Comment 5 Michael Stather 2006-04-03 14:51:22 UTC
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?
Comment 6 Christian Neumair 2006-04-05 14:08:54 UTC
*** Bug 337366 has been marked as a duplicate of this bug. ***
Comment 7 Christian Neumair 2006-06-21 19:45:17 UTC
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.
Comment 8 Michael Stather 2006-07-10 22:01:21 UTC
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.
Comment 9 Timothy L. Gott 2011-06-18 11:15:58 UTC
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? :-)