15

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?

JohnTortugo
  • 269
  • 2
  • 7

2 Answers2

2

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.

-1

If you are running the machine on a VM, You can suspend the guest OS and start it up again after the hardware reboots.

Raza
  • 4,059
  • 7
  • 28
  • 33
  • Unfortunately I'm not. – JohnTortugo May 20 '13 at 21:09
  • I don't think of any other way. You can always reopen your windows from start up script. I think you may be able to find a flag to reopen last closed sessions for the web browser. – Raza May 20 '13 at 21:51
  • Chromium already do that. I in fact I use a plugin, called SessionBuddy, that do what I want, however for chromium windows. – JohnTortugo May 20 '13 at 22:58