[openbox] Executing programs on startup

Aaron Griffin aaronmgriffin at gmail.com
Wed Sep 15 17:36:14 EDT 2004

On Wed, 15 Sep 2004 14:02:07 -0700 (PDT), Jeremy C. Reed
<reed at reedmedia.net> wrote:
> On Wed, 15 Sep 2004, Martin Dinstuhl wrote:
> > from OBPager that appreas to say that it can't connect to the XServer
> > (because it hasn't started yet!).  Is it possible to set up the rc.xml to
> sleep 10 && OBPager &

Try this in your .xinitrc (or .xsession, depending on usage):

pid = my_window_manager &

some_program &
OBPager &
another_program &
gkrellm &

wait $pid

This will start off with the window manager (openbox in this case) and
execute it in the background.  This way it's running when all other
programs are executed (in the background as well).  The catch here is
that as soon as .xinitrc/.xsession is finished, X basically dies... so
you need to wait for the window manager to finish initialization
before the file can exit.

this may be your problem - the script is exited (causing X to flop)
before OB and everything was done initializing...
Got a question? http://catb.org/~esr/faqs/smart-questions.html

More information about the openbox mailing list