[libdazzle] shortcuts: resource paths are not filenames



commit 4b2efb2850b025f0d906f884d6447f413f7b7dd5
Author: Christian Hergert <chergert redhat com>
Date:   Mon Nov 13 05:10:33 2017 -0800

    shortcuts: resource paths are not filenames
    
    And therefore we don't want the separator char.

 src/shortcuts/dzl-shortcut-manager.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/shortcuts/dzl-shortcut-manager.c b/src/shortcuts/dzl-shortcut-manager.c
index be047ce..e7e1274 100644
--- a/src/shortcuts/dzl-shortcut-manager.c
+++ b/src/shortcuts/dzl-shortcut-manager.c
@@ -517,7 +517,7 @@ dzl_shortcut_manager_load_resources (DzlShortcutManager *self,
     {
       for (guint i = 0; children[i] != NULL; i++)
         {
-          g_autofree gchar *path = g_build_filename (resource_dir, children[i], NULL);
+          g_autofree gchar *path = g_build_path ("/", resource_dir, children[i], NULL);
           g_autoptr(DzlShortcutTheme) theme = NULL;
           g_autoptr(GError) local_error = NULL;
           g_autoptr(GBytes) bytes = NULL;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]