-
-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathenviron-xulrunner
More file actions
13 lines (13 loc) · 734 Bytes
/
environ-xulrunner
File metadata and controls
13 lines (13 loc) · 734 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
# We are now shipping geckofx and xulrunner side-by-side with Bloom, so just search
# for them. Note that this script lives in /usr/share/bloom-desktop* on user machines,
# but on the root of the repository on developer machines. This requires a bit of
# hackery to reliably find the proper location of the Firefox/xulrunner libraries.
tmpbasedir=$(pwd | sed s=usr/share/=usr/lib/=)
if (echo $tmpbasedir | grep /usr/lib/bloom-desktop >/dev/null); then
export XULRUNNER=$(dirname $(find $tmpbasedir -name libxul.so))
else
export XULRUNNER=$(dirname $(find ${tmpbasedir}/output/${BUILD} -name libxul.so))
fi
export LD_LIBRARY_PATH="${XULRUNNER}:${LD_LIBRARY_PATH}"
export LD_PRELOAD="${XULRUNNER}/libgeckofix.so"
unset tmpbasedir