forked from BloomBooks/BloomDesktop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
environ-xulrunner
24 lines (22 loc) · 891 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
# MonoDevelop seems to set PKG_CONFIG_LIBDIR to the empty string, which is bad
# for us because that eliminates most packages, including geckofx29.
# If PKG_CONFIG_LIBDIR is not set at all, then the default paths are searched.
# To be safe, we'll preserve the old value (if it is set) and restore it.
if [ "${PKG_CONFIG_LIBDIR+set}" = set ]; then
OLD_PKG_CONFIG_LIBDIR="${PKG_CONFIG_LIBDIR}"
unset PKG_CONFIG_LIBDIR
fi
if [ -z "$XULRUNNER" ]; then
if [ -d /usr/lib/xulrunner-geckofx-29 ]; then
export XULRUNNER=/usr/lib/xulrunner-geckofx-29
else
export XULRUNNER=/usr/lib/xulrunner-29
fi
fi
LD_LIBRARY_PATH="${XULRUNNER}:${LD_LIBRARY_PATH}"
GECKOFX="$(pkg-config --variable assemblies_dir Geckofx-Core)"
export LD_PRELOAD=${GECKOFX}/geckofix.so
if [ "${OLD_PKG_CONFIG_LIBDIR+set}" = set ]; then
export PKG_CONFIG_LIBDIR="${OLD_PKG_CONFIG_LIBDIR}"
unset OLD_PKG_CONFIG_LIBDIR
fi