From f2a0226cb35bb6e9682c661daccff1826f86d13a Mon Sep 17 00:00:00 2001 From: Jabier Arraiza Date: Thu, 26 Jul 2018 16:51:10 +0200 Subject: Fixing paths to allow themes and icons inside main inkscape instalation not only at home --- src/io/resource.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/io/resource.cpp') diff --git a/src/io/resource.cpp b/src/io/resource.cpp index 83772dd5d..d90f329d9 100644 --- a/src/io/resource.cpp +++ b/src/io/resource.cpp @@ -54,7 +54,7 @@ gchar *_get_path(Domain domain, Type type, char const *filename) case FILTERS: temp = INKSCAPE_FILTERDIR; break; case FONTS: temp = INKSCAPE_FONTSDIR; break; case GRADIENTS: temp = INKSCAPE_GRADIENTSDIR; break; - case ICONS: temp = INKSCAPE_PIXMAPDIR; break; + case ICONS: temp = INKSCAPE_ICONSDIR; break; case KEYS: temp = INKSCAPE_KEYSDIR; break; case MARKERS: temp = INKSCAPE_MARKERSDIR; break; case NONE: g_assert_not_reached(); break; @@ -66,6 +66,10 @@ gchar *_get_path(Domain domain, Type type, char const *filename) case THEMES: temp = INKSCAPE_THEMEDIR; break; case TUTORIALS: temp = INKSCAPE_TUTORIALSDIR; break; case UIS: temp = INKSCAPE_UIDIR; break; + case PIXMAPS: temp = INKSCAPE_PIXMAPSDIR; break; +#ifdef INKSCAPE_DATADIR + case DATADIR: temp = INKSCAPE_DATADIR; break; +#endif default: temp = ""; } path = g_strdup(temp); @@ -100,6 +104,8 @@ gchar *_get_path(Domain domain, Type type, char const *filename) case TEMPLATES: name = "templates"; break; case THEMES: name = "icons"; break; case UIS: name = "ui"; break; + case PIXMAPS: name = "pixmaps"; break; + case DATADIR: name = ""; break; default: return _get_path(SYSTEM, type, filename); } path = profile_path(name); -- cgit v1.2.3