summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/path-prefix.h22
-rw-r--r--src/ui/dialog/inkscape-preferences.cpp2
2 files changed, 12 insertions, 12 deletions
diff --git a/src/path-prefix.h b/src/path-prefix.h
index dd46d2cc4..adfa7f613 100644
--- a/src/path-prefix.h
+++ b/src/path-prefix.h
@@ -28,22 +28,13 @@
#include "prefix.h"
-
-char *append_inkscape_datadir(const char *relative_path);
-char *get_program_name();
-char *get_program_dir();
-
-#ifdef _WIN32
-#undef INKSCAPE_DATADIR
-#define INKSCAPE_DATADIR append_inkscape_datadir(NULL)
-#endif
-
#ifdef ENABLE_BINRELOC
/* The way that we're building now is with a shared library between Inkscape
and Inkview, and the code will find the path to the library then. But we
don't really want that. This prefix then pulls things out of the lib directory
and back into the root install dir. */
# define INKSCAPE_LIBPREFIX "/../.."
+# define INKSCAPE_DATADIR_REAL BR_DATADIR( INKSCAPE_LIBPREFIX "/share")
# define INKSCAPE_APPICONDIR BR_DATADIR( INKSCAPE_LIBPREFIX "/share/pixmaps" )
# define INKSCAPE_ATTRRELDIR BR_DATADIR( INKSCAPE_LIBPREFIX "/share/inkscape/attributes" )
# define INKSCAPE_BINDDIR BR_DATADIR( INKSCAPE_LIBPREFIX "/share/inkscape/bind" )
@@ -71,6 +62,7 @@ char *get_program_dir();
# define CREATE_PATTERNSDIR BR_DATADIR( INKSCAPE_LIBPREFIX "/share/create/patterns/vector" )
#else
# ifdef _WIN32
+# define INKSCAPE_DATADIR_REAL append_inkscape_datadir()
# define INKSCAPE_APPICONDIR append_inkscape_datadir("pixmaps")
# define INKSCAPE_ATTRRELDIR append_inkscape_datadir("attributes")
# define INKSCAPE_BINDDIR append_inkscape_datadir("bind")
@@ -96,7 +88,8 @@ char *get_program_dir();
# define CREATE_GRADIENTSDIR append_inkscape_datadir("create\\gradients\\gimp")
# define CREATE_PALETTESDIR append_inkscape_datadir("create\\swatches")
# define CREATE_PATTERNSDIR append_inkscape_datadir("create\\patterns\\vector")
-# elif defined ENABLE_OSX_APP_LOCATIONS
+# elif defined ENABLE_OSX_APP_LOCATIONS // TODO: Is ENABLE_OSX_APP_LOCATIONS still in use?
+# define INKSCAPE_DATADIR_REAL "Contents/Resources/share"
# define INKSCAPE_APPICONDIR "Contents/Resources/share/pixmaps"
# define INKSCAPE_ATTRRELDIR "Contents/Resources/share/inkscape/attributes"
# define INKSCAPE_BINDDIR "Contents/Resources/share/inkscape/bind"
@@ -123,6 +116,7 @@ char *get_program_dir();
# define CREATE_PALETTESDIR "/Library/Application Support/create/swatches"
# define CREATE_PATTERNSDIR "/Library/Application Support/create/patterns/vector"
# else
+# define INKSCAPE_DATADIR_REAL append_inkscape_datadir()
# define INKSCAPE_APPICONDIR append_inkscape_datadir("pixmaps")
# define INKSCAPE_ATTRRELDIR append_inkscape_datadir("inkscape/attributes")
# define INKSCAPE_BINDDIR append_inkscape_datadir("inkscape/bind")
@@ -151,4 +145,10 @@ char *get_program_dir();
# endif
#endif
+
+char *append_inkscape_datadir(const char *relative_path=nullptr);
+char *get_program_name();
+char *get_program_dir();
+
+
#endif /* _PATH_PREFIX_H_ */
diff --git a/src/ui/dialog/inkscape-preferences.cpp b/src/ui/dialog/inkscape-preferences.cpp
index 68c664832..a3a9baf0f 100644
--- a/src/ui/dialog/inkscape-preferences.cpp
+++ b/src/ui/dialog/inkscape-preferences.cpp
@@ -2456,7 +2456,7 @@ void InkscapePreferences::initPageSystem()
_sys_tmp_files.set_editable(false);
_page_system.add_line(true, _("Temporary files: "), _sys_tmp_files, "", _("Location of the temporary files used for autosave"), true);
- _sys_data.set_text( INKSCAPE_DATADIR );
+ _sys_data.set_text( INKSCAPE_DATADIR_REAL );
_sys_data.set_editable(false);
_page_system.add_line(true, _("Inkscape data: "), _sys_data, "", _("Location of Inkscape data"), true);