[libdazzle/libdazzle-3-26] shortcuts: resource paths are not filenames



commit c10f35509edfe5c88eba7511c471eee168a5d8d0
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 7452bda..ee51e12 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]