Linux – How to Save X Session — ArchLinux+Openbox

arch linuxlinuxopenboxx11xorg

I use Arch Linux and Openbox. How can I save the state of my current openbox/X session and later restart them?

The scenario is like this: I've several browsers windows open, terminals, file managers, etc., and for some reason at any moment I may need to restart the computer. I would like to restore the set of windows I've previously using before the restart. Is it possible? How can I do it?

Best Answer

You need a session manager! Since you are running X one is installed by default! man xsm. If you do not like that one check out Arch packages. My computers usually have uptime couple of years so I do not know from the top of my head how to put the X session in the same state before shutdown or suspend. It should not be too difficult as OS X does it by default.

Related Question