[gjs] [importer] Add datadir/share/gjs-1.0 to searchpath
- From: Johan Dahlin <johan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs] [importer] Add datadir/share/gjs-1.0 to searchpath
- Date: Tue, 16 Feb 2010 23:52:57 +0000 (UTC)
commit 97cc544267695919993fe23aaceeb5767c85806a
Author: Johan Dahlin <johan gnome org>
Date: Tue Feb 16 21:51:03 2010 -0200
[importer] Add datadir/share/gjs-1.0 to searchpath
We already have libdir/gjs-1.0 added by default to the
search path. But datadir/share/gjs-1.0 is normally picked
up through XDG_DATA_DIRS. This change will add a fallback
in case XDG_DATA_DIRS is not set.
Acked-By: Havoc
gjs/importer.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gjs/importer.c b/gjs/importer.c
index d0b0361..8d11e9d 100644
--- a/gjs/importer.c
+++ b/gjs/importer.c
@@ -1109,6 +1109,9 @@ gjs_get_search_path(void)
/* ${libdir}/gjs-1.0 */
g_ptr_array_add(path, g_strdup(GJS_NATIVE_DIR));
+ /* ${datadir}/share/gjs-1.0 */
+ g_ptr_array_add(path, g_strdup(GJS_JS_DIR));
+
g_ptr_array_add(path, NULL);
search_path = (char**)g_ptr_array_free(path, FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]