24 lines
1.1 KiB
Diff
24 lines
1.1 KiB
Diff
|
Index: gnome-shell-0.0.1/src/gnome-shell.in
|
||
|
===================================================================
|
||
|
--- gnome-shell-0.0.1.orig/src/gnome-shell.in
|
||
|
+++ gnome-shell-0.0.1/src/gnome-shell.in
|
||
|
@@ -151,6 +151,18 @@ def start_shell():
|
||
|
mozjs_libdir = re.sub('-(sdk|devel)', '', mozjs_sdkdir)
|
||
|
if os.path.exists(mozjs_libdir + '/libmozjs.so'):
|
||
|
env['LD_LIBRARY_PATH'] = os.environ.get('LD_LIBRARY_PATH', '') + ':' + mozjs_libdir
|
||
|
+ else:
|
||
|
+ # code taken from jhbuild
|
||
|
+ uname = os.uname()
|
||
|
+ use_lib64 = (uname[0], uname[4]) in [ ('Linux', 'x86_64'),
|
||
|
+ ('Linux', 'ppc64'),
|
||
|
+ ('Linux', 's390x') ]
|
||
|
+ del uname
|
||
|
+ if use_lib64:
|
||
|
+ mozjs_libdir = '/usr/lib64/xulrunner-1.9'
|
||
|
+ else:
|
||
|
+ mozjs_libdir = '/usr/lib/xulrunner-1.9'
|
||
|
+ env['LD_LIBRARY_PATH'] = os.environ.get('LD_LIBRARY_PATH', '') + ':' + mozjs_libdir
|
||
|
|
||
|
if not options.verbose:
|
||
|
# Unless verbose() is specified, only let gjs show errors and
|