Restoring the last session on login

Forum rules
Before you post please read how to get help

Restoring the last session on login

Postby kortos on Wed Jun 29, 2011 1:27 pm

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
kortos
Level 1
Level 1
 
Posts: 5
Joined: Wed Jun 29, 2011 9:35 am

Linux Mint is funded by ads and donations.
 

Re: Restoring the last session on login

Postby Habitual on Wed Jun 29, 2011 2:00 pm

Save your work/open files and run this:
Code: Select all
gnome-session-save --logout


Log back in... is it "saved"
What's a landing but a take off in reverse?
User avatar
Habitual
Level 8
Level 8
 
Posts: 2254
Joined: Sun Nov 21, 2010 8:31 pm
Location: LM17Q-Xfce

Re: Restoring the last session on login

Postby kortos on Wed Jun 29, 2011 2:37 pm

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.
kortos
Level 1
Level 1
 
Posts: 5
Joined: Wed Jun 29, 2011 9:35 am

Re: Restoring the last session on login

Postby DrMartinus on Sun Jul 03, 2011 1:32 am

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?
Dr. Martinus, Linux user since 1999
Current system: LinuxMint 12, AMD 64-bit, Gnome Desktop, up-to-date (at least I try)
I'm German, so I might translate terms and software names the wrong way. Please apologize and ask if something is unclear
DrMartinus
Level 2
Level 2
 
Posts: 74
Joined: Tue Apr 06, 2010 1:16 am

Re: Restoring the last session on login

Postby kortos on Mon Jul 04, 2011 4:58 pm

Unfortunately the only answer i have yet found to that problem is to downgrade GNOME to ver. 2.30
kortos
Level 1
Level 1
 
Posts: 5
Joined: Wed Jun 29, 2011 9:35 am

Re: Restoring the last session on login

Postby Habitual on Mon Jul 04, 2011 10:23 pm

why not a desktop launcher for "gnome-session-save --logout" ?
What's a landing but a take off in reverse?
User avatar
Habitual
Level 8
Level 8
 
Posts: 2254
Joined: Sun Nov 21, 2010 8:31 pm
Location: LM17Q-Xfce

Re: Restoring the last session on login

Postby DrMartinus on Tue Jul 05, 2011 12:55 am

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.
Dr. Martinus, Linux user since 1999
Current system: LinuxMint 12, AMD 64-bit, Gnome Desktop, up-to-date (at least I try)
I'm German, so I might translate terms and software names the wrong way. Please apologize and ask if something is unclear
DrMartinus
Level 2
Level 2
 
Posts: 74
Joined: Tue Apr 06, 2010 1:16 am

Re: Restoring the last session on login

Postby DrMartinus on Tue Jul 05, 2011 3:35 am

My tests on both options didn't yield the wanted results. It just doesn't restore the last session.
Dr. Martinus, Linux user since 1999
Current system: LinuxMint 12, AMD 64-bit, Gnome Desktop, up-to-date (at least I try)
I'm German, so I might translate terms and software names the wrong way. Please apologize and ask if something is unclear
DrMartinus
Level 2
Level 2
 
Posts: 74
Joined: Tue Apr 06, 2010 1:16 am

Re: Restoring the last session on login

Postby masterjet on Thu May 31, 2012 10:32 am

Same thing, using at work mint 12 and mint 11 and both do not restore sessions. BTW mint 12 with KDE restores
masterjet
Level 1
Level 1
 
Posts: 3
Joined: Mon Apr 30, 2012 10:48 am

Re: Restoring the last session on login

Postby eback on Tue Sep 17, 2013 11:18 pm

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.
http://www.linuxandlife.com/2012/06/how-to-enable-session-saving-in-linux.html
eback
Level 1
Level 1
 
Posts: 5
Joined: Tue Sep 17, 2013 11:14 pm

Linux Mint is funded by ads and donations.
 

Return to MATE

Who is online

Users browsing this forum: No registered users and 7 guests