From: joncruz Date: Wed, 30 Sep 2009 07:40:21 +0000 (+0000) Subject: Create additional user subdir's. Fixes bug #437938. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9698e12dbeb31b870816b74e81246404c5cec284;p=inkscape.git Create additional user subdir's. Fixes bug #437938. --- diff --git a/src/inkscape.cpp b/src/inkscape.cpp index fc9aff78e..586abd22b 100644 --- a/src/inkscape.cpp +++ b/src/inkscape.cpp @@ -1482,6 +1482,13 @@ profile_path(const char *filename) if ( g_mkdir_with_parents(prefdir, mode) == -1 ) { int problem = errno; g_warning("Unable to create profile directory (%s) (%d)", g_strerror(problem), problem); + } else { + gchar const *userDirs[] = {"keys", "templates", "icons", "extensions", "palettes", NULL}; + for (gchar const** name = userDirs; *name; ++name) { + gchar *dir = g_build_filename(prefdir, *name, NULL); + g_mkdir_with_parents(dir, mode); + g_free(dir); + } } } }