[openbox] Run on startup

ivanova flamingivanova at punkass.com
Thu Dec 16 15:46:14 EST 2004


On Thu, 16 Dec 2004 12:30:45 +0000
Lutz Schönemann <lutz.schoenemann at sit.fraunhofer.de> wrote:

> 
> 
> ivanova wrote:
> > On Mon, 13 Dec 2004 17:33:00 +0000
> > Lutz Schönemann <lutz.schoenemann at sit.fraunhofer.de> wrote:
> > 
> > 
> >>>>I don't think that ~/.xsession works with gdm because gdm runs the 
> >>>>chosen wm directly as far as I know. But maybe it is possible to add a 
> >>>>action-tag into the rc.xml file? Is there any documentation that 
> >>>>describes the rc.xml file?
> >>>>
> >>>>Jesper Noehr wrote:
> >>>>
> >>>>
> >>>>>[...]
> >>>>>
> >>>>>
> >>>>>
> >>>>>>Does this work also with gdm? Is there no other way with a specific 
> >>>>>>config file of openbox (i.e. rc.xml)?
> >>>>>
> >>>>>
> >>>>>There is no "autoexec this" feature on openbox as far as I know.
> >>>>>~/.xinitrc will not work with GDM, but I think I read somewhere that you
> >>>>>can use ~/.xsession or equivalent for this. Correct me if I'm wrong.
> >>>>>
> >>>
> >>>
> >>>I use gdm and ~/.xsession without problems ;)
> >>>
> >>
> >>hmm, maybe you can paste me your ~/.xsession so that I can look for some 
> >>failures I made...
> > 
> > 
> > Just a normal shell script - make sure it's executable.
> > 
> > ---------------------8<-------------------------------
> > #!/bin/bash
> >  
> > export GDK_USE_XFT=1
> > 
> > /usr/libexec/gnome-settings-daemon --disable-sound &
> > torsmo &
> > irexec &
> > xbindkeys &
> > devilspie &
> > feh --bg-tile /stuff/images/Synaptic_Terminal.jpg &
> > pypanel &
> > xscreensaver -nosplash &
> > exec /usr/bin/openbox
> > 
> > ---------------------8<-------------------------------
> > 
> 
> Okay, the script works fine... Now what you've done to make gdm run this 
> script and not directly the openbox binary?

Sorry I did all this stuff a long time ago and forgot that It I had to modify
some scripts ;)

Look in /etc/X11/Sessions/ . There should be a script for every WM you are
using. You can just modify the appropriate script there or edit it to run
~/.xsession.

The advantage of running ~/.xsession is that other WM's that also use xsession
won't need modifying.




More information about the openbox mailing list