From b29977196b527bb50b045cad249e9c149fa0ef75 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 7 Jul 2002 10:26:42 +0000 Subject: [PATCH] try make the ~/.openbox dir if it doesnt exist. --- src/blackbox.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/blackbox.cc b/src/blackbox.cc index 0865b681..631e819e 100644 --- a/src/blackbox.cc +++ b/src/blackbox.cc @@ -145,6 +145,12 @@ Blackbox::Blackbox(char **m_argv, char *dpy_name, char *rc, char *menu) ::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); -- 2.45.2