# How can I save the applications and workspaces they are in so that after a reboot, the same workspaces exist with the same programs/files open in them?

How can I save the applications and workspaces they are in so that after a reboot, the same workspacesin the same positions with the same programs/files open in them? Is this perhaps called a session? Actually, it would be useful to be able to save and open "sessions" without having to reboot. I'm using Fedora 28 with Gnome 3.28.2. Gnome is so polished it seems like this would be a built-in feature, but I haven't found it.

This website https://unix.stackexchange.com/questi... mentions a gnome settings key that would do it, but I didn't find a similar key on my machine using gsettings from the command line and looking through the schema for an appropriate name and then its keys.

I found a script on this website, http://blog.thewebsitepeople.org/2013..., but that is a few years old and I would prefer a "native" method if one exists.

On this website, https://www.howtogeek.com/203952/how-..., a method is discussed using a deconf editor. I'd rather not install more software but if there is no other method, I'll try this.

edit retag close merge delete

Sort by » oldest newest most voted

Well I guess Florian gave you solutions. And yes fedora doesn't support system state . But you can do it by installing fedora on VMware or virtual box and taking snapshots- there is a option in it , which exactly create replica of the desired system. It's a very good option to roll back your settings in system.

All the best...!!

more

EDIT: I tested the solution suggested below and it doesn't work.

The key you are looking for is called

org.gnome.SessionManager auto-save-session


So, what you want to to is set it to true:

gsettings set org.gnome.SessionManager auto-save-session true


You do not need dconf-editor - it's just a nice GUI tool to achieve the same thing.

more

Thank you. That sure seems like it should do it. When I reboot with some apps open, however, nothing opens. I verified the key is set to true using gsettings get. I also looked in ~/.config/gnome-session/saved-session and there is nothing in there. Is there a command I need to issue to save the session and another one to restore it?

( 2018-06-05 12:07:48 -0600 )edit

Are you saying that u want to reset ur system fedora 28--after doing some task but u need to roll it back as original system ???

more

No. I'm just wondering if there is a way to save the orentation of workspaces and files or programs that are open in them. An analogy, would be how a browser lets you set a homepage or set of pages so that each time the browser is opened, the same websites open on the same tabs.

( 2018-06-05 06:10:53 -0600 )edit

Example: I have a pdf file half screen left and a libreoffice write file half screen right to take notes on the pdf file I'm reading. In the workspace below, I have a terminal open in the left half on the screen and an editor in the right. In the workspace below that, I have firefox open fullscreen. Everyday for the next week, I'll use these same files and applications. If I shut the machine off each night, I have to re-open the same files and reposition the workspaces each day. Hoping there is a way to save this instead.

( 2018-06-05 06:13:40 -0600 )edit
2

as far as I know, fedora does not support saving system state as an option, with any of the desktop environments. my only suggestion, is to not shut down at night, but that would mean you have battery backup to avoid power loss.

( 2018-06-05 07:18:42 -0600 )edit