diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2009-09-30 07:40:21 +0000 |
|---|---|---|
| committer | joncruz <joncruz@users.sourceforge.net> | 2009-09-30 07:40:21 +0000 |
| commit | 01d8a34a845e1639e833c45dabfe1e14c9f74c0b (patch) | |
| tree | 3f32ca3df47d8582fde19e965d83346e4edacb26 /src/inkscape.cpp | |
| parent | Dutch basic tutorial SVG file by Kris. (diff) | |
| download | inkscape-01d8a34a845e1639e833c45dabfe1e14c9f74c0b.tar.gz inkscape-01d8a34a845e1639e833c45dabfe1e14c9f74c0b.zip | |
Create additional user subdir's. Fixes bug #437938.
(bzr r8682)
Diffstat (limited to 'src/inkscape.cpp')
| -rw-r--r-- | src/inkscape.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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); + } } } } |
