[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openbox
Subject:    [openbox] set working directory when starting Openbox
From:       rees () umich ! edu (Jim Rees)
Date:       2014-05-22 16:46:18
Message-ID: 20140522164618.GA18085 () umich ! edu
[Download RAW message or body]

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.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic