[grilo-plugins] lua-factory: Prefer jhbuilt scripts to system ones



commit 4bb73847abaf23e8c6ae2da92e214225945f5e49
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Jun 6 11:58:07 2014 +0200

    lua-factory: Prefer jhbuilt scripts to system ones
    
    When building the list of system data dirs to read the scripts from,
    make sure that we prefer the scripts in the first system dir mentioned
    in XDG_DATA_DIRS. This fixes a jhbuilt grilo-test-ui loading the
    system-wide script instead of the jhbuilt one when both exist.

 src/lua-factory/grl-lua-factory.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/lua-factory/grl-lua-factory.c b/src/lua-factory/grl-lua-factory.c
index 8a5f7ef..420b114 100644
--- a/src/lua-factory/grl-lua-factory.c
+++ b/src/lua-factory/grl-lua-factory.c
@@ -533,6 +533,8 @@ get_lua_sources (void)
                                                       LUA_FACTORY_SOURCE_LOCATION,
                                                       NULL));
     }
+    l_locations = g_list_reverse (l_locations);
+
     /* User locations */
     l_locations = g_list_prepend (l_locations,
                                   g_build_filename (g_get_user_data_dir (),


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