-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathenviron-xulrunner
24 lines (19 loc) · 990 Bytes
/
environ-xulrunner
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Set GECKOFX, XULRUNNER, MONO_PATH, LD_LIBRARY_PATH, and LD_PRELOAD for
# using geckofx at compile time and run time.
# Set GECKOFX to location of Geckofx assemblies. Prepend to MONO_PATH.
# Set XULRUNNER to location of gecko .so files. Prepend to LD_LIBRARY_PATH.
if [ "$RUNMODE" = "INSTALLED" ]; then
# Use the geckofx shipped with fieldworks. It is not included with
# flexbridge since flexbridge is architecture independent.
GECKOFX="/usr/lib/fieldworks"
XULRUNNER="${GECKOFX}/Firefox-Linux64"
else
GECKOFX="$HOME/.nuget/packages/geckofx60.64.linux/60.0.51/lib/net40"
XULRUNNER="$HOME/.nuget/packages/geckofx60.64.linux/60.0.51/content/Firefox-Linux64"
fi
MONO_PATH="$GECKOFX:$MONO_PATH"
LD_LIBRARY_PATH="${XULRUNNER}:${LD_LIBRARY_PATH}"
if [[ $(/sbin/ldconfig -N -v $(sed 's/:/ /g' <<< $LD_LIBRARY_PATH) 2>/dev/null | grep libgeckofix.so | wc -l) > 0 ]]; then
LD_PRELOAD=libgeckofix.so
fi
export GECKOFX XULRUNNER MONO_PATH LD_LIBRARY_PATH LD_PRELOAD