all repos — openbox @ 4cb183401cc42f61a759b02f1210a3528f7869e5

openbox fork - make it a bit more like ryudo

show a message if chdir() fails
Dana Jansens danakj@orodu.net
commit

4cb183401cc42f61a759b02f1210a3528f7869e5

parent

eaa3b3aaa72c5828902639dfa215f6c3b6c2a282

1 files changed, 4 insertions(+), 1 deletions(-)

jump to
M openbox/openbox.copenbox/openbox.c

@@ -62,6 +62,7 @@ #endif

#ifdef HAVE_UNISTD_H # include <unistd.h> #endif +#include <errno.h> #include <X11/cursorfont.h>

@@ -101,7 +102,9 @@ textdomain(PACKAGE_NAME);

g_set_prgname(argv[0]); - chdir(g_get_home_dir()); + if (chdir(g_get_home_dir()) == -1) + g_warning("Unable to change to home directory (%s): %s", + g_get_home_dir(), g_strerror(errno)); parse_paths_startup();