Is there a way to save current session (the applications + the organization of windows in desktops) in Unity and load it when needed?
|
No - as you've described it is not currently possible on Ubuntu versions 11.04 and up. You may read this bug report, comment 24 in particular https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/771896 or here is a more complete explanation (too long to copy here)? https://lists.ubuntu.com/archives/ubuntu-desktop/2011-January/002734.html |
||||
|
|
|
I have made a workaround that is a script that helps to configure your session. Download it here. You can view the code of script ( https://www.dropbox.com/s/w1btmead93q6hze/session.config?dl=0 ), there are explanations in each part. It will create a startup script which will move to each viewport and open the specified application. Also you can run it whenever you want just press Alt + F2 and paste Removing To remove any changes made by my script just delete this files:
Or run this at terminal:
|
|||||||||
|
|
You can do this: Or may be you can read about how to make a program auto-start everytime you log in. Or you can try this gconf-editor key:
|
|||||
|
|
This script works great for me on Xubuntu. It's more or less desktop-agnostic and in theory should also support Unity. From the original blog post by Arnon Weinberg:
Installation on Ubuntu The installation instructions provided in the blog post are valid for Fedora. On Ubuntu you will have to install the following dependencies:
Please make sure to check out the 'Details' section of the original blog post to find out more about the different session restore levels. Update: another user reported that the script only worked with the first line being |
||||
|
|
Should enable this for you. |
|||||||||
|
|
I wrote a little library/command line tool which allow saving and restoring sessions and has support for different monitors setups as well as virtual desktops. Installation
UsageSave the current session to ~/.lwsm/sessionData/DEFAULT.json
Save the current session to ~/.lwsm/sessionData/my-session.json
Restore the session from ~/.lwsm/sessionData/DEFAULT.json
Restore the session from ~/.lwsm/sessionData/my-session.json
Gracefully close all running apps before starting the session
Check it out: https://github.com/johannesjo/linux-window-session-manager |
|||
|
|