From 01d8a34a845e1639e833c45dabfe1e14c9f74c0b Mon Sep 17 00:00:00 2001 From: "Jon A. Cruz" Date: Wed, 30 Sep 2009 07:40:21 +0000 Subject: Create additional user subdir's. Fixes bug #437938. (bzr r8682) --- src/inkscape.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/inkscape.cpp') 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); + } } } } -- cgit v1.2.3