[grilo-plugins] lua-factory: Prefer jhbuilt scripts to system ones
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] lua-factory: Prefer jhbuilt scripts to system ones
- Date: Fri, 6 Jun 2014 10:02:25 +0000 (UTC)
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]