How to have the desktop restored to its previous session ?

Questions about the project and the distribution - obviously no support questions here please

How to have the desktop restored to its previous session ?

Postby stephaneeybert on Tue Sep 13, 2011 4:47 pm

I just installed Linux Mint 11 Katya and it's beautiful :-)

The one thing that still evades me is how to have the desktop state being restored to its previous session ?

I would like to have the applications left opened on shutdown being automatically reopened at the next boot.

It would be nice to have the terminal showing its pretty face with all its opened tabs.. Same for the Firefox browser.. and Eclipse..

Any clue ?

Cheers,

Stephane

PS: I have a Thinkpad T43
stephaneeybert
Level 1
Level 1
 
Posts: 34
Joined: Sat Jul 17, 2010 2:56 am

Linux Mint is funded by ads and donations.
 

Re: How to have the desktop restored to its previous session

Postby Bob E on Tue Sep 13, 2011 5:50 pm

I'm not sure how 11 is set up, on 10 you would go Menu>System>Preferences> Startup Applications. Open Startup Applications and you can add programs to start automatically when you start your computer. The other tab called Options has a tic box to automatically remember running applications when logging out. (Don't know how well that one works...I've never used it.)

Hope this helps.
User avatar
Bob E
Level 4
Level 4
 
Posts: 370
Joined: Sun May 01, 2011 9:45 am
Location: Directly above the center of the Earth.

Re: How to have the desktop restored to its previous session

Postby linuxviolin on Tue Sep 13, 2011 5:55 pm

Just use hibernation.
K.I.S.S. ===> "Keep It Simple, Stupid"
"Simplicity is the ultimate sophistication." (Leonardo da Vinci)
"Everything should be made as simple as possible, but no simpler." (Albert Einstein)
User avatar
linuxviolin
Level 8
Level 8
 
Posts: 2055
Joined: Tue Feb 27, 2007 6:55 pm
Location: France

Re: How to have the desktop restored to its previous session

Postby conslie on Tue Sep 13, 2011 7:32 pm

In CompizConfig Settings Manager there is a Session Management plugin. You might need the Compiz Extras package first. It is still in Beta, so ....

Ubuntu Tweak seems to offer something similar. I haven't tested either.

Have fun!
conslie
Level 4
Level 4
 
Posts: 369
Joined: Sun Oct 11, 2009 2:03 am

Re: How to have the desktop restored to its previous session

Postby stephaneeybert on Wed Sep 14, 2011 12:18 am

@Bob, yes, ML 9 had such a feature as well, but there is no such Options tab any longer in LM 11.

I have an old T43 and using Compiz just for such a simple feature seems like overkill to me.

I would really like to have it even on shutdown / reboot.
stephaneeybert
Level 1
Level 1
 
Posts: 34
Joined: Sat Jul 17, 2010 2:56 am

Re: How to have the desktop restored to its previous session

Postby pluraldave on Wed Sep 14, 2011 3:39 am

What about if you:

1. Press <Alt>+<F2>
2. Enter "gconf-editor"
3. Navigate to apps>gnome-session>options

Is the auto-save option still there?
User avatar
pluraldave
Level 5
Level 5
 
Posts: 709
Joined: Mon Sep 01, 2008 8:05 am

Re: How to have the desktop restored to its previous session

Postby stephaneeybert on Wed Sep 14, 2011 5:04 am

Hi Dave,

Yes the auto save option is still there, but the checkbox was already ticked.

I didn't feel like unticking it.

Stephane
stephaneeybert
Level 1
Level 1
 
Posts: 34
Joined: Sat Jul 17, 2010 2:56 am

Re: How to have the desktop restored to its previous session

Postby stephaneeybert on Thu Oct 27, 2011 4:38 am

So there is no way to save and restaure this gnome session ?

Hibernating is not a work around for me as I shutdwon the computer and want to shut it down.
stephaneeybert
Level 1
Level 1
 
Posts: 34
Joined: Sat Jul 17, 2010 2:56 am

Re: How to have the desktop restored to its previous session

Postby mpiter on Sun Oct 30, 2011 7:02 pm

stephaneeybert wrote:So there is no way to save and restaure this gnome session ?


I have just migrated from Ubuntu 11.04 to Linux Mint 11. As a consequence, I do not dare to claim that it is not possible with Linux Mint, but the feature has deliberately been discarded from Ubuntu 11.04. Because Linux Mint 11 is based on Ubuntu 11.04, it is likely that Mint does not offer that option anymore either.

There is a bug report on that topic in the Ubuntu Launchpad bug report site, but I do not remember which one. You should be able to easily find it. There was a fierce debate about that topic in the bug report. The main argument of the development team was that too many programs do not properly restore their data after being stopped. Hence, the development team decided that it was better to suppress the feature instead of leaving something that works half of the time. Many users were angry about it and preferred something not perfect to nothing. The development team did not change its mind.
mpiter
Level 2
Level 2
 
Posts: 71
Joined: Tue Oct 25, 2011 3:24 pm

Re: How to have the desktop restored to its previous session

Postby stephaneeybert on Sun Oct 30, 2011 7:39 pm

Thanks for the explanation. I was quite happy with it. It restaured fine my shells and firefox..
stephaneeybert
Level 1
Level 1
 
Posts: 34
Joined: Sat Jul 17, 2010 2:56 am

Re: How to have the desktop restored to its previous session

Postby mpiter on Wed Nov 02, 2011 5:25 pm

stephaneeybert wrote:Thanks for the explanation. I was quite happy with it. It restaured fine my shells and firefox..


Yes, I understand. I did not use it. I prefer to always start a session with the same programs opened irrespective to the desktop state when I had shut down the computer. But many people had good arguments to keep the option alive.
mpiter
Level 2
Level 2
 
Posts: 71
Joined: Tue Oct 25, 2011 3:24 pm

Re: How to have the desktop restored to its previous session

Postby blackpaw on Mon Nov 07, 2011 12:47 am

Wow, just started trying out gnome via mint - dropping session support is close to being a deal breaker for me. I heard the Gnome devs were getting pretty arrogant and patronising, I see what people mean.
User avatar
blackpaw
Level 1
Level 1
 
Posts: 1
Joined: Mon Nov 07, 2011 12:16 am

Re: How to have the desktop restored to its previous session

Postby stephaneeybert on Mon Nov 07, 2011 3:42 am

@mpiter

How do you start the shell in a predefined state at boot time ?

I'd like to have my shell open by itself, with 10 tabs, and each tab to a given directory.

If that is possible..

Thanks.
stephaneeybert
Level 1
Level 1
 
Posts: 34
Joined: Sat Jul 17, 2010 2:56 am

Re: How to have the desktop restored to its previous session

Postby mpiter on Mon Nov 07, 2011 6:57 pm

stephaneeybert wrote:@mpiter

How do you start the shell in a predefined state at boot time ?

I'd like to have my shell open by itself, with 10 tabs, and each tab to a given directory.


Just create that command in your Startup Application list:
Code: Select all
gnome-terminal --tab-with-profile=stephaneeybert --working-directory=dir1 --tab-with-profile=stephaneeybert --working-directory=dir2...--tab-with-profile=stephaneeybert --working-directory=dir10
mpiter
Level 2
Level 2
 
Posts: 71
Joined: Tue Oct 25, 2011 3:24 pm

Re: How to have the desktop restored to its previous session

Postby stephaneeybert on Tue Nov 08, 2011 5:10 am

Works beautifully ! Thanks buddy.
stephaneeybert
Level 1
Level 1
 
Posts: 34
Joined: Sat Jul 17, 2010 2:56 am

Re: How to have the desktop restored to its previous session

Postby stephaneeybert on Sun Oct 21, 2012 8:37 am

For the record, here is my example for the Gnome terminal

[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=Terminal
Comment=Use the command line
Exec=gnome-terminal --maximize --tab --tab --tab --tab --working-directory=dev/php/learnintouch --tab --working-directory=dev/php/learnintouch/engine --tab --working-directory=dev/php/learnintouch/engine --tab --working-directory=dev/php/learnintouch/engine --tab --working-directory=dev/php/learnintouch/engine --tab --working-directory=dev/php/learnintouch/engine --tab --working-directory=dev/php/learnintouch/engine --tab --working-directory=dev/php/learnintouch/engine
Icon=utilities-terminal
Hidden=false
NoDisplay=false
Terminal=false
stephaneeybert
Level 1
Level 1
 
Posts: 34
Joined: Sat Jul 17, 2010 2:56 am

Linux Mint is funded by ads and donations.
 

Return to Non-technical Questions

Who is online

Users browsing this forum: No registered users and 2 guests