Sometimes you are performing an important task on your system with certain applications, but suddenly your system goes into hibernation or something else requires your attention and you have to put the system to sleep. In this case, you may lose your work as your running applications will be closed.
In order for your system to remember the application you started in recent sessions and restore the system to its previous state, the Dconf editor is the best tool to help you with this. In this article, we will describe how you can install and configure the Dconf Editor tool to achieve this goal.
We used Debian 10 OS to execute the commands and procedures mentioned in this article.
Step 1. Install Dconf Editor
First, open the Terminal command line application in Debian OS. To do this, go to the “Actions” tab in the upper left corner of the desktop. Then enter terminal in the search bar. When the terminal icon appears, click it to launch it.
In terminal, enter the following command to install the dconf editor.
$ sudo apt-get install dconf-editor
When prompted for a password, enter your sudo password.
It will take a while and the Dconf editor will be installed on your system.
After installation, you can verify the installation and check the version of the installed Dconf editor by running the following command in Terminal:
$ dconf-editor --version
Step 2: Launch Dconf Editor
To launch the Dconf editor, press the superkey on your keyboard and type dconf in the search bar that appears. When you see the Dconf editor in the results, click it to launch it.
Alternatively, you can launch the Dconf editor from the Terminal command line. To do this, simply enter dconf-editor in Terminal like this:
When the Dconf editor starts, you will see the following view:
Step 3. Configure Gnome with Dconf Editor
In the Dconf editor window go to org> gnome> gnome session …
Under gnome-session, you will see a list of options. From there, click on the slider in front of “auto save session” to toggle it to the “on” position.
All currently running programs will be automatically restored at the next login.
Step 4. Put into sleep mode and log in.
Now put your system to sleep using the following command in a terminal:
$ systemctl suspend
Now log back in and you will see that all your previously running programs have been restored.
This is it! I hope this will be useful whenever you need your system to automatically restore running applications from your last session.
How to automatically remember running applications from your last Debian session