summaryrefslogtreecommitdiff
path: root/standalone/linux
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-11-27 17:05:29 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-11-27 17:05:29 -0400
commitaf2e65f1c25b72643dfec6ae2a9284ebeeb70ec5 (patch)
tree0246a2c6e0ef184c310920a4cc5e9e62a56ac0ab /standalone/linux
parentece8d76d67e2c22e33963f52a341f4b3a59d3ec4 (diff)
The standalone builds now unset their special path and library path variables before running the system web browser.
Should fix a crash reported on OSX.
Diffstat (limited to 'standalone/linux')
-rwxr-xr-xstandalone/linux/runshell10
1 files changed, 10 insertions, 0 deletions
diff --git a/standalone/linux/runshell b/standalone/linux/runshell
index 82d3ce2c5..816c3036e 100755
--- a/standalone/linux/runshell
+++ b/standalone/linux/runshell
@@ -41,17 +41,27 @@ fi
# Put our binaries first, to avoid issues with out of date or incompatable
# system binaries.
+ORIG_PATH="$PATH"
+export ORIG_PATH
PATH=$base/bin:$PATH
export PATH
+ORIG_LD_LIBRARY_PATH="$LD_LIBRARY_PATH"
+export ORIG_LD_LIBRARY_PATH
for lib in $(cat $base/libdirs); do
LD_LIBRARY_PATH="$base/$lib:$LD_LIBRARY_PATH"
done
export LD_LIBRARY_PATH
+ORIG_GIT_EXEC_PATH="$GIT_EXEC_PATH"
+export ORIG_GIT_EXEC_PATH
GIT_EXEC_PATH=$base/git-core
export GIT_EXEC_PATH
+# Indicate which variables were exported above.
+GIT_ANNEX_STANDLONE_ENV="PATH LD_LIBRARY_PATH GIT_EXEC_PATH"
+export GIT_ANNEX_STANDLONE_ENV
+
if [ "$1" ]; then
cmd="$1"
shift 1