<div dir="ltr"><div>On Fri, Sep 18, 2015 at 4:25 PM, Ian Zimmerman <span dir="ltr"><<a href="mailto:itz@buug.org" target="_blank">itz@buug.org</a>></span> wrote:<br></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span>On 2015-09-18 12:28 -0700, Ian Zimmerman wrote:<br>
<br>
> > I run Openbox on my laptop and I am happy with it. My config files<br>
> > are in ~/.config/openbox/ and I start openbox using the startx utility<br>
> > My .xinitrc file contains the line<br>
> > exec openbox-session<br>
> ><br>
> > For some reason I'd like to start openbox on another display with<br>
> ><br>
> > startx /bin/openbox-session -- :1<br>
> ><br>
> > but with different config files or directory. I have read the<br>
> > openbox-session man page and it says the openbox-session command does<br>
> > not take any command line arguments. Is there a way to give openbox a<br>
> > path to the config files I want to use ?<br>
><br>
> Set the XDG_CONFIG_HOME environment variable to something else than $HOME.<br>
<br>
</span>That should really be $HOME/.config.  So, like this:<br>
<br>
mkdir -p ~/.alternate-config/openbox<br>
<br>
vi ~/.alternate-config/openbox/rc.xml<br>
<br>
XDG_CONFIG_HOME=~/.alternate-config startx /bin/openbox-session -- :1<br>
<br>
One thing about this is that all programs you start in the session will<br>
inherit the environment, so programs that follow the XDG spec will look<br>
for their config files under the new directory.  You can address it by<br>
making symlinks from ~/.alternate-config to the corresponding files and<br>
directories under ~/.config (except the openbox one, of course).</blockquote><div><br></div>openbox-session passes its command line arguments through to openbox, so you can use:<div><div><br></div><div>  --config-file FILE  Specify the path to the config file to use</div></div><div> </div></div></div></div>