Restoring the last session on login

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
kortos

Restoring the last session on login

Post 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
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Habitual

Re: Restoring the last session on login

Post by Habitual »

Save your work/open files and run this:

Code: Select all

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

Re: Restoring the last session on login

Post 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.
DrMartinus

Re: Restoring the last session on login

Post 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?
kortos

Re: Restoring the last session on login

Post by kortos »

Unfortunately the only answer i have yet found to that problem is to downgrade GNOME to ver. 2.30
Habitual

Re: Restoring the last session on login

Post by Habitual »

why not a desktop launcher for "gnome-session-save --logout" ?
DrMartinus

Re: Restoring the last session on login

Post 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.
DrMartinus

Re: Restoring the last session on login

Post by DrMartinus »

My tests on both options didn't yield the wanted results. It just doesn't restore the last session.
masterjet

Re: Restoring the last session on login

Post by masterjet »

Same thing, using at work mint 12 and mint 11 and both do not restore sessions. BTW mint 12 with KDE restores
eback

Re: Restoring the last session on login

Post 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]
Locked

Return to “MATE”