summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b860e5c)
raw | patch | inline | side by side (parent: b860e5c)
author | cilix42 <cilix42@users.sourceforge.net> | |
Wed, 12 Aug 2009 13:18:51 +0000 (13:18 +0000) | ||
committer | cilix42 <cilix42@users.sourceforge.net> | |
Wed, 12 Aug 2009 13:18:51 +0000 (13:18 +0000) |
src/extension/system.cpp | patch | blob | history |
index 2251ac7b6edbcec53ddcea10546f0724a13477ce..365ea925bb5628aebd5ba0e2d59331d4f5af8c4c 100644 (file)
--- a/src/extension/system.cpp
+++ b/src/extension/system.cpp
break;
}
- // this is probably unnecessary, but just to be on the safe side ...
if(extension.empty())
extension = SP_MODULE_KEY_OUTPUT_SVG_INKSCAPE;
if (doc->uri) {
path = Glib::path_get_dirname(doc->uri);
} else {
- // FIXME: should we use the save_as path here or the current directory or even something else?
+ // FIXME: should we use the save_as path here or something else? Maybe we should
+ // leave this as a choice to the user.
path = prefs->getString("/dialogs/save_as/path");
}
}
- // this is probably unnecessary, but just to be on the safe side ...
if(path.empty())
- path = g_get_current_dir(); // is this the most sensible solution?
+ path = g_get_home_dir(); // Is this the most sensible solution? Note that we should avoid
+ // g_get_current_dir because this leads to problems on OS X where
+ // Inkscape opens the dialog inside application bundle when it is
+ // invoked for the first teim.
return path;
}