When I log in Ubuntu, I would like all windows opened at previous session (terminal and Firefox mainly) to be re-opened automatically at the same size and position.
How to proceed?
|
For 11.04 and earlierTry this System > Start up Applications > Options and check Automatically remember running applications when logging off and click remember current applications. |
|||||
|
For 12.04 (and 11.10)The short answer is: hibernation is the best option because the gnome-session-save functionality was removed after 11.04 since it was buggy, and the official tweak to manually re-enable this functionality does not appear to work. Part B of this answer describes how to use an alternative hibernation method, TuxOnIce, which is more compatible and reliable right now than the built-in hibernation. A. Trying to enable the old Gnome session saving functionality
B. What works for now: Enhanced Hibernation with TuxOnIce
|
|||||||||
|
|
The current believe is that the proper session saving/restoring feature is to use either suspend or hibernate. I agree though that hibernate and suspend can be a pain to get working if they did not out of the box ... But have a look at ...
Features
It is not very well documented though and the last DEB released was for Heron and the website was last updated in 2005 so it might be useless. Here are the tarballs: And also have a look at Tuxonice
The PPA has precompiled Ubuntu kernels with TuxOnIce already compiled in, the userui binary and the hibernate script. So it might not be for the fainthearted. There is one workaround that might be worth looking in to:
Not what you asked for but it seems we are deemed to look for workarounds :) |
|||||||
|
How to save a session on Ubuntu 11.04 or above:
Open the next labels in order: Then select Now you should see the
DONE!Now when you turn off your computer, the current session will save automatically. The next time you turn it will be exactly as you left. |
|||
|
|
|
You can enable a feature similar to this. You can do this by having Ubuntu remember the locations and running applications on log off / shut down. To do so navigate to System > Startup Applications and in the Options tab check "Automatically remember running applications when logging off" and press the "Remember current applications" button.
|
|||||
|
|
You need to enable to see all aplications on the startup-aplication. Run this bash command on a terminal: sudo sed -i 's/NoDisplay=true/NoDisplay=false/g' /etc/xdg/autostart/*.desktop After that you will see all the aplications in Startup Applications. I take this tip from this link http://www.webupd8.org/2012/04/things-to-tweak-after-installing-ubuntu.html, maybe it will interest you. Sorry foy my english! Saludos! |
|||||
|
|
As a workaround you can re-enable hibernation in 12.04 and use it shut down your pc and then wake it up with all your application still in use. Type in terminal :
and then add this string to the text file :
This way :
Then hibernate option will be displayed again on shutdown menu :
Hope it will help. |
|||||
|
|
In CCSM, use Place Windows and Resize Window plugins. |
|||||
|
1.CryoPID But It is not very well documented though and the last DEB released was for Heron and the website was last updated in 2005 so it might be useless.
Features
Here are the tarballs: 2.Tuxonice probably this is your better bet and may work.
The PPA has precompiled Ubuntu kernels with TuxOnIce already compiled in, the userui binary and the hibernate script. So it might not be for the fainthearted. There is one workaround that might be worth looking in to:
I am not allowed to copy someones answer, so source. |
|||||||||||||
|