From 56713e45fb9a1d73cc16c69728f78eb6ab4f7b55 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 29 Mar 2003 19:47:01 +0000 Subject: create the dirs for themes in ~/.openbox on startup --- openbox/openbox.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'openbox') 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); -- cgit v1.2.3