[openbox] multiple accours

Dana Jansens danakj at orodu.net
Fri Sep 18 19:37:55 EDT 2015


On Fri, Sep 18, 2015 at 4:25 PM, Ian Zimmerman <itz at buug.org> wrote:

> On 2015-09-18 12:28 -0700, Ian Zimmerman wrote:
>
> > > I run Openbox on my laptop and I am happy with it. My config files
> > > are in ~/.config/openbox/ and I start openbox using the startx utility
> > > My .xinitrc file contains the line
> > > exec openbox-session
> > >
> > > For some reason I'd like to start openbox on another display with
> > >
> > > startx /bin/openbox-session -- :1
> > >
> > > but with different config files or directory. I have read the
> > > openbox-session man page and it says the openbox-session command does
> > > not take any command line arguments. Is there a way to give openbox a
> > > path to the config files I want to use ?
> >
> > Set the XDG_CONFIG_HOME environment variable to something else than
> $HOME.
>
> That should really be $HOME/.config.  So, like this:
>
> mkdir -p ~/.alternate-config/openbox
>
> vi ~/.alternate-config/openbox/rc.xml
>
> XDG_CONFIG_HOME=~/.alternate-config startx /bin/openbox-session -- :1
>
> One thing about this is that all programs you start in the session will
> inherit the environment, so programs that follow the XDG spec will look
> for their config files under the new directory.  You can address it by
> making symlinks from ~/.alternate-config to the corresponding files and
> directories under ~/.config (except the openbox one, of course).


openbox-session passes its command line arguments through to openbox, so
you can use:

  --config-file FILE  Specify the path to the config file to use
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://icculus.org/pipermail/openbox/attachments/20150918/3bf24767/attachment.html>


More information about the openbox mailing list