all repos — openbox @ b29977196b527bb50b045cad249e9c149fa0ef75

openbox fork - make it a bit more like ryudo

try make the ~/.openbox dir if it doesnt exist.
Dana Jansens danakj@orodu.net
commit

b29977196b527bb50b045cad249e9c149fa0ef75

parent

b950402ba238aeb6d76604b761b6fdc249b070ab

1 files changed, 6 insertions(+), 0 deletions(-)

jump to
M src/blackbox.ccsrc/blackbox.cc

@@ -145,6 +145,12 @@ fprintf(stderr, "cannot set locale modifiers\n");

::blackbox = this; argv = m_argv; + + // try to make sure the ~/.openbox directory exists + mkdir(expandTilde("~/.openbox").c_str(), S_IREAD | S_IWRITE | S_IEXEC | + S_IRGRP | S_IWGRP | S_IXGRP | + S_IROTH | S_IWOTH | S_IXOTH); + if (! rc) rc = "~/.openbox/rc"; rc_file = expandTilde(rc); config.setFile(rc_file);