summaryrefslogtreecommitdiffstats
path: root/src/inkscape.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2007-04-01 01:18:06 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2007-04-01 01:18:06 +0000
commit7ae4b0f68e28bf5e38b32bddc7ba68a302f9492c (patch)
treeac24e5e68fd04f34b8963416cfbe34b77219b1db /src/inkscape.cpp
parentmake rotations, scales and flips work with the object's rotation axis (diff)
downloadinkscape-7ae4b0f68e28bf5e38b32bddc7ba68a302f9492c.tar.gz
inkscape-7ae4b0f68e28bf5e38b32bddc7ba68a302f9492c.zip
when creating .inkscape profile dir, also create empty subdirs for templates etc.
(bzr r2796)
Diffstat (limited to 'src/inkscape.cpp')
-rw-r--r--src/inkscape.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/inkscape.cpp b/src/inkscape.cpp
index 799227bf3..af6ef4f05 100644
--- a/src/inkscape.cpp
+++ b/src/inkscape.cpp
@@ -1238,6 +1238,29 @@ inkscape_init_config (Inkscape::XML::Document *doc, const gchar *config_name, co
return false;
}
}
+
+ // Also create (empty for now) subdirectories for the user's stuff
+ {
+ gchar *temp_dn = profile_path("templates");
+ Inkscape::IO::mkdir_utf8name(temp_dn);
+ }
+ {
+ gchar *temp_dn = profile_path("keys");
+ Inkscape::IO::mkdir_utf8name(temp_dn);
+ }
+ {
+ gchar *temp_dn = profile_path("icons");
+ Inkscape::IO::mkdir_utf8name(temp_dn);
+ }
+ {
+ gchar *temp_dn = profile_path("extensions");
+ Inkscape::IO::mkdir_utf8name(temp_dn);
+ }
+ {
+ gchar *temp_dn = profile_path("palettes");
+ Inkscape::IO::mkdir_utf8name(temp_dn);
+ }
+
} else if (!Inkscape::IO::file_test(dn, G_FILE_TEST_IS_DIR)) {
if (use_gui) {
// Not a directory