How to restore the session in Unity after restarting Ubuntu

Firefox extension in Unity

Firefox in Unity

One of the interesting functions that Mac OS has that Ubuntu does not have is the possibility of restoring the last session after turning on the computer. This function is in Mac OS and is very useful since you can turn off the computer and when you turn it on again, the user can find the desktop as it was before. This form of restore session can also be obtained in Unity, for this you only need to install a script and that's it.

This script has been created by the developer Arnon weinberg and for the moment it does a basic operation. This means that the script can only run open applications and windows but is not capable of restoring background system services or some duplicate applications, that is, two file windows will not be able to be opened.

Script installation in Unity

In order to install this Arnon Weinberg script, open a terminal and type the following:

sudo apt-get install perl x11-utils wmctrl xdotool
wget http://raw.githubusercontent.com/hotice/webupd8/master/session -O /tmp/session
sudo install /tmp/session /usr/local/bin/
sudo chmod +x /usr/local/bin/session

Once we have installed it we save the session with the command session save and we restore it with the command session restore, commands that we have to use with the Ubuntu Session and Startup application or Startup Applications. So every time we close the system the session will be saved and when we start it, in addition to starting the Dropbox or the sound, the last session saved in Unity will also be restored.

Conclusion on session restore

The truth is that the script is still green, something green but the result is interesting and in a few months it could be a great alternative to those who want to restore the session and especially for Elementary OS developers, the Ubuntu fork that seeks to resemble Mac OS and is gradually achieving it, although we can always choose to achieve a unique customization of Unity and leave the famous Mac OS aside a bit. .


Be the first to comment

Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.