Page 1 of 1

Restoring the last session on login

Posted: Wed Jun 29, 2011 1:27 pm
by kortos
Hi everybody!
On my previous system (Ubuntu 10.04 LTS) I was using 'session restore' feature which loaded all applications and their settings from previous session.
To achieve that I set:
Menu -> Startup Programs -> Options -> Automatically remember running applications when logging out [I used to 'tick' this option]
Although Gnome User Guide on http://library.gnome.org/users/user-gui ... ns.html.en states that this setting is still valid for gnome, I cannot find 'Option' tab in 'Startup Programs' anymore.
I tried both editing settings via standard Katya menu and using

Code: Select all

sudo gnome-control-center
command. Neither of them seem to have 'Session restore' option.
Is there any other way to automatically restore previous session on login?
Help appreciated

Re: Restoring the last session on login

Posted: Wed Jun 29, 2011 2:00 pm
by Habitual
Save your work/open files and run this:

Code: Select all

gnome-session-save --logout
Log back in... is it "saved"

Re: Restoring the last session on login

Posted: Wed Jun 29, 2011 2:37 pm
by kortos
Actually this option works only once (The setting i was writing about 'remembered' for me that session should be saved before shutting down).
The second thing is that it sometimes work good and sometimes not...
I am wondering if it is issue with gnome 2.32 itself - This is brand new installation and I even hadn't time to spoil anything.
On my old box with Ubuntu 10.04 and gnome 2.30 everything is working properly.

Re: Restoring the last session on login

Posted: Sun Jul 03, 2011 1:32 am
by DrMartinus
Hi kortos,

I'm also looking for a solution to this problem. I can't find an option to restore a session at startup. Did you find out how to set the system accordingly?

Re: Restoring the last session on login

Posted: Mon Jul 04, 2011 4:58 pm
by kortos
Unfortunately the only answer i have yet found to that problem is to downgrade GNOME to ver. 2.30

Re: Restoring the last session on login

Posted: Mon Jul 04, 2011 10:23 pm
by Habitual
why not a desktop launcher for "gnome-session-save --logout" ?

Re: Restoring the last session on login

Posted: Tue Jul 05, 2011 12:55 am
by DrMartinus
I'll give it a try, but in the man-page I read this:
The session is not saved when gnome-session-save is called with any of the options ending the session.
Is not very promising, and I feel also stupid, because if you end the session with the command to save the session, it would be the very purpose of the command to make sure the session is saved. Maybe a small script can be run that first just runs

Code: Select all

gnome-session-save
and then

Code: Select all

gnome-session-save --logout
But maybe the saved data will be lost then. Well, I'll try it out.

I find it very, very disturbing that such good and helpful features are being dropped without any need.

Re: Restoring the last session on login

Posted: Tue Jul 05, 2011 3:35 am
by DrMartinus
My tests on both options didn't yield the wanted results. It just doesn't restore the last session.

Re: Restoring the last session on login

Posted: Thu May 31, 2012 10:32 am
by masterjet
Same thing, using at work mint 12 and mint 11 and both do not restore sessions. BTW mint 12 with KDE restores

Re: Restoring the last session on login

Posted: Tue Sep 17, 2013 11:18 pm
by eback
1. Open a terminal window.

2. Type in the following command then hit Enter.

sudo apt-get install dconf-tools

3. Hit Alt+F2.

4. Type dconf-editor to open the config window.

5. In the config menu, go to org then gnome then gnome-session.

6. Check the auto-save-session on the right side of the config window.

Now your session will be restored when you login to your Linux Mint 13 Cinnamon desktop.

For more, see the original article at the link below.
[url]http://www.linuxandlife.com/2012/06/how-to-enable-session-saving-in-linux.html[/url]