From 8eda67dd93ccd7f4ca5226f9f4528c8f9143d7d2 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Sun, 1 Apr 2007 01:18:06 +0000 Subject: [PATCH] when creating .inkscape profile dir, also create empty subdirs for templates etc. --- src/inkscape.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) 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 -- 2.30.2