diff --git a/src/inkscape.cpp b/src/inkscape.cpp
index 6a0971ac7f92252f8b355db9a5342240f8a6f6e3..dca23d5396fd8e294e3082b41d3ae4d31152f465 100644 (file)
--- a/src/inkscape.cpp
+++ b/src/inkscape.cpp
static void (* ill_handler) (int) = SIG_DFL;
static void (* bus_handler) (int) = SIG_DFL;
-#ifdef WIN32
#define INKSCAPE_PROFILE_DIR "Inkscape"
-#else
-#define INKSCAPE_PROFILE_DIR ".inkscape"
-#endif
-
#define MENUS_FILE "menus.xml"
if (!docname || !*docname) docname = "emergency";
// try saving to the profile location
- g_snprintf (c, 1024, "%.256s.%s.%d", docname, sptstr, count);
+ g_snprintf (c, 1024, "%.256s.%s.%d.svg", docname, sptstr, count);
gchar * location = homedir_path(c);
Inkscape::IO::dump_fopen_call(location, "E");
file = Inkscape::IO::fopen_utf8name(location, "w");
g_free(location);
if (!file) {
// try saving to /tmp
- g_snprintf (c, 1024, "/tmp/inkscape-%.256s.%s.%d", docname, sptstr, count);
+ g_snprintf (c, 1024, "/tmp/inkscape-%.256s.%s.%d.svg", docname, sptstr, count);
Inkscape::IO::dump_fopen_call(c, "G");
file = Inkscape::IO::fopen_utf8name(c, "w");
}
if (!file) {
// try saving to the current directory
- g_snprintf (c, 1024, "inkscape-%.256s.%s.%d", docname, sptstr, count);
+ g_snprintf (c, 1024, "inkscape-%.256s.%s.%d.svg", docname, sptstr, count);
Inkscape::IO::dump_fopen_call(c, "F");
file = Inkscape::IO::fopen_utf8name(c, "w");
}
}
#endif
if (!prefdir) {
- prefdir = homedir_path(NULL);
+ prefdir = homedir_path(".config");
}
}
return g_build_filename(prefdir, INKSCAPE_PROFILE_DIR, filename, NULL);