summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-03-29 19:47:01 +0000
committerDana Jansens <danakj@orodu.net>2003-03-29 19:47:01 +0000
commit56713e45fb9a1d73cc16c69728f78eb6ab4f7b55 (patch)
treefbd5f312f4c1d4e459080ccc79a2f71340a8fb88 /openbox
parentb185f7d8dd188b459d8eb05715446cb17380bb85 (diff)
create the dirs for themes in ~/.openbox on startup
Diffstat (limited to 'openbox')
-rw-r--r--openbox/openbox.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/openbox/openbox.c b/openbox/openbox.c
index fa31204f..117349f2 100644
--- a/openbox/openbox.c
+++ b/openbox/openbox.c
@@ -98,6 +98,11 @@ int main(int argc, char **argv)
mkdir(path, (S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IWGRP | S_IXGRP |
S_IROTH | S_IWOTH | S_IXOTH));
g_free(path);
+ /* create the ~/.openbox/themes dir */
+ path = g_build_filename(g_get_home_dir(), ".openbox", "themes", NULL);
+ mkdir(path, (S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IWGRP | S_IXGRP |
+ S_IROTH | S_IWOTH | S_IXOTH));
+ g_free(path);
/* parse out command line args */
parse_args(argc, argv);