<div dir="ltr"><div>I don't use xinit and I never used it but I expect your issue is in the chain of processes running between your login and the apparition of openbox.<br><br></div><div>All I can say is if I create the 2 files as you described then run a startx, I have the same behaviour than you: a full launch of openbox, which set up a new environment for my user session which set up my default directory to my homedir.<br>
</div><div>Once more, for me this is a normal behaviour: new session, new environment.<br></div><div><br>And what happen during that time, I have no idea. You can use this command line to generate awfully huge logs:<br></div>
<div>strace exec openbox-session > /your/path/to/openbox.log 2> /your/path/to/openbox.strace<br><br></div><div>the first ">" is to get standard logs (those sent to the console)<br></div><div>the second is to get stderr which is used by strace which should tell you alsmot all what happens during the launch time.<br>
<br></div><div>And finally, if your goal is only to have your user thrown into /tmp after bash is launched in interactive mode, modify your .bashrc.<br><br></div><div>Cheers,<br><br></div><div>mat<br>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-05-22 14:30 GMT+02:00 Crni Gorac <span dir="ltr"><<a href="mailto:cgorac@gmail.com" target="_blank">cgorac@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
What you described is somewhat opposite to what happens on my machine.<br>
 I have Openbox 3.5.2, and xinit 1.3.3.  I have following snippet in<br>
my $HOME/.bash_login:<br>
#--------------------------<br>
cd /tmp<br>
<br>
case $(tty) in<br>
/dev/tty1)<br>
        xinit<br>
        ;;<br>
esac<br>
#--------------------------<br>
and my $HOME/.xinitrc is simply:<br>
#--------------------------<br>
exec openbox-session<br>
#--------------------------<br>
<br>
Now, when I login (on first tty), Openbox get started automatically,<br>
and despite working directory being set to /tmp before xinit run,<br>
Openbox is properly reading all files from $HOME/.config/openbox<br>
directory.  However, when I run an xterm from within Openbox, the<br>
working directory is set to $HOME (instead to /tmp).<br>
<br>
I recently switched to Openbox from E17, and the setup described went<br>
practically unchanged (except that instead of "exec openbox-sesssion"<br>
I had "exec enlightenment_start" in my $HOME/.xinitrc file).  However,<br>
when xterm run in E17, its working directory would be /tmp, as I would<br>
expect...<br>
<br>
Thanks.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On Thu, May 22, 2014 at 2:01 PM, Mathias Dufresne<br>
<<a href="mailto:mathias.dufresne@gmail.com">mathias.dufresne@gmail.com</a>> wrote:<br>
> Ok. I'm not an Openbox dev, nor even a dev at all, but for me this behaviour<br>
> is not part of the window manager, which ever it is. A window manager has to<br>
> provide window decoration, placement and so on, but no real working space,<br>
> only frames into which other applications would run and set up an<br>
> environment.<br>
><br>
> This was my sysadmin point of view. And I tested it:<br>
><br>
> Logging off from my X session, going into some console to:<br>
> - stop my X server as root<br>
> - connect with normal user into a console (arrived of course in my $HOME)<br>
> - cd /tmp with taht user/console<br>
> - launch stratx from that console, still in /tmp<br>
><br>
> The result was openbox started without using my ~/.config/openbox files (no<br>
> tint2 for a taskbar and so on) and the xterm I ran were all started into<br>
> /tmp rather than my own home directory.<br>
> So when Openbox is starting or running it is not changing the current<br>
> directory to $HOME.<br>
><br>
> Once back into my console I killed Openbox (ctrl + C...) and then my shell<br>
> was still positionned into /tmp too.<br>
> So Openbox do not change the directory in the terminal you use to launch<br>
> startx.<br>
><br>
> I'm using a Gentoo (modified to use systemd rather sysvinit but I don't<br>
> think impact at all the startx script, it impacts when running X and Openbox<br>
> system wide) and so my startx script could be different from yours, I don't<br>
> knkow what system you are using.<br>
><br>
> On this system startx script is part of xinit package in version 1.3.3. I<br>
> mentionned that because I expect this directory switch is done by the<br>
> command you are using to launch Openbox, which seems to be startx.<br>
><br>
> Cheers,<br>
><br>
> mathias<br>
</div></div><div class="HOEnZb"><div class="h5">_______________________________________________<br>
openbox mailing list<br>
<a href="mailto:openbox@icculus.org">openbox@icculus.org</a><br>
<a href="http://icculus.org/mailman/listinfo/openbox" target="_blank">http://icculus.org/mailman/listinfo/openbox</a><br>
</div></div></blockquote></div><br></div>