diff options
Diffstat (limited to 'astro/google-earth/files/browserwrapper')
-rw-r--r-- | astro/google-earth/files/browserwrapper | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/astro/google-earth/files/browserwrapper b/astro/google-earth/files/browserwrapper new file mode 100644 index 000000000000..286387c1d41c --- /dev/null +++ b/astro/google-earth/files/browserwrapper @@ -0,0 +1,18 @@ +#! /bin/sh +# browser wrapper script to restore original LD_LIBRARY_PATH so a native +# browser won't pick up linux libs from google earth and fail to start + +if [ -n "${REAL_LD_LIBRARY_PATH}" ] +then + export LD_LIBRARY_PATH="${REAL_LD_LIBRARY_PATH}" +else + unset LD_LIBRARY_PATH +fi + +BROWSER="$(/usr/bin/which ${REAL_BROWSER})" +if [ -x "${BROWSER}" ] +then + exec "${BROWSER}" "$@" +else + echo browser not found: $REAL_BROWSER +fi |