projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b950402
)
try make the ~/.openbox dir if it doesnt exist.
author
Dana Jansens
<danakj@orodu.net>
Sun, 7 Jul 2002 10:26:42 +0000
(10:26 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Sun, 7 Jul 2002 10:26:42 +0000
(10:26 +0000)
src/blackbox.cc
patch
|
blob
|
history
diff --git
a/src/blackbox.cc
b/src/blackbox.cc
index 0865b681f6e50fb1ed330294ea55c1f3a6925d4b..631e819e1bab33c5c499efd112ca2e0739def576 100644
(file)
--- 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);