From 7fb3c67bb66ed1bc2647c4695cf441f9683fd064 Mon Sep 17 00:00:00 2001 From: Jabiertxo Arraiza Cenoz Date: Wed, 25 Jul 2018 13:12:18 +0200 Subject: Working on open folders on WIN --- src/io/resource.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/io') diff --git a/src/io/resource.cpp b/src/io/resource.cpp index 65fd01d0e..9f584f58c 100644 --- a/src/io/resource.cpp +++ b/src/io/resource.cpp @@ -105,7 +105,8 @@ gchar *_get_path(Domain domain, Type type, char const *filename) path = profile_path(name); } break; } - + + if (filename && path) { gchar *temp=g_build_filename(path, filename, NULL); g_free(path); @@ -115,6 +116,8 @@ gchar *_get_path(Domain domain, Type type, char const *filename) return path; } + + Util::ptr_shared get_path(Domain domain, Type type, char const *filename) { char *path = _get_path(domain, type, filename); @@ -422,7 +425,7 @@ char *profile_path(const char *filename) int problem = errno; g_warning("Unable to create profile directory (%s) (%d)", g_strerror(problem), problem); } else { - gchar const *userDirs[] = {"keys", "templates", "icons", "extensions", "palettes", nullptr}; + gchar const *userDirs[] = {"keys", "templates", "icons", "extensions", "ui", "symbols", "themes", "palettes", nullptr}; for (gchar const** name = userDirs; *name; ++name) { gchar *dir = g_build_filename(prefdir, *name, NULL); g_mkdir_with_parents(dir, mode); -- cgit v1.2.3