[gnome-shell] Extend, don't replace GI_TYPELIB_PATH in gnome-shell launcher



commit ddc135839b5ecc7a8b4ca04b048b9aa4a95a89aa
Author: Alexander Larsson <alexl redhat com>
Date:   Mon Feb 28 21:34:48 2011 +0100

    Extend, don't replace GI_TYPELIB_PATH in gnome-shell launcher
    
    Without this we can't support some gi typelibs being in system
    directories.

 src/gnome-shell.in |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-shell.in b/src/gnome-shell.in
index 32bf81c..dd5e967 100755
--- a/src/gnome-shell.in
+++ b/src/gnome-shell.in
@@ -195,6 +195,8 @@ def start_shell(perf_output=None):
                 'NO_AT_BRIDGE'        : '1'})
 
     if running_from_source_tree:
+        if os.environ.has_key('GI_TYPELIB_PATH'):
+            typelib_dir = typelib_dir + ":" + os.environ.get('GI_TYPELIB_PATH')
         env.update({'GNOME_SHELL_DATADIR'  : data_dir,
                     'GI_TYPELIB_PATH'      : typelib_dir,
                     'GSETTINGS_SCHEMA_DIR' : data_dir })



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