Re: set working directory when starting Openbox

Jim Rees <[email protected]>
Newsgroups gmane.comp.window-managers.openbox
Message-ID <[email protected]>
Crni Gorac wrote:

  I already did strace, and indeed one can find "chdir($HOME)" in the
  listing - it happens somewhere in between syscalls to create
  $HOME/.config/openbox/openbox.log file and
  $HOME/.cache/openbox/sessions directory, so I strongly suspecting
  Openbox is doing this current directory change, and this is why I
  posted the question in the first place.

It's easy enough to find in the source, strace wasn't really necessary. It's
one of the first things that happens in main(). It uses g_get_home_dir(),
which is somewhat controversial as it reads the password database, ignoring
$HOME.

I agree that doing a chdir to anywhere seems wrong. The only thing I could
find in the changelog was a fix for when the chdir fails.
_______________________________________________
openbox mailing list
[email protected]
http://icculus.org/mailman/listinfo/openbox
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.