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?

2 Answers 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
    xorg-xsm was deprecated on Arch some years ago now...
    – jasonwryan
    May 21, 2013 at 3:51
  • @jasonwryan Ok. I didn't know that you guys are using just peaces of X like FreeBSD.My Xenocara on OpenBSD include entire XOrg May 21, 2013 at 4:11
  • @jasonwryan what alternatives do I have? May 21, 2013 at 15:43
  • @JohnTortugo Run your WM in a session manager; XFCE has one (as does LXDE, Gnome and KDE)...
    – jasonwryan
    May 21, 2013 at 18:14
  • 1
    I use Openbox, I'll search for one that suits myself. May 21, 2013 at 22:31

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

  • Unfortunately I'm not. May 20, 2013 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, 2013 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. May 20, 2013 at 22:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .