summaryrefslogtreecommitdiff
path: root/astro/google-earth/files/patch-bin-googleearth
diff options
context:
space:
mode:
Diffstat (limited to 'astro/google-earth/files/patch-bin-googleearth')
-rw-r--r--astro/google-earth/files/patch-bin-googleearth23
1 files changed, 23 insertions, 0 deletions
diff --git a/astro/google-earth/files/patch-bin-googleearth b/astro/google-earth/files/patch-bin-googleearth
new file mode 100644
index 000000000000..a7d9d2a51f52
--- /dev/null
+++ b/astro/google-earth/files/patch-bin-googleearth
@@ -0,0 +1,23 @@
+Index: bin/googleearth
+@@ -34,11 +34,21 @@ FindPath()
+ dirname $fullpath
+ }
+
++ulimit -s 32768 2>/dev/null
++
+ # Set the home if not already set.
+ if [ "${GOOGLEEARTH_DATA_PATH}" = "" ]; then
+ GOOGLEEARTH_DATA_PATH="`FindPath $0`"
+ fi
+
++# For browser wrapper script (to use original LD_LIBRARY_PATH)
++if [ -n "${BROWSER}" ]
++then
++ export REAL_BROWSER="${BROWSER}"
++ export REAL_LD_LIBRARY_PATH="${LD_LIBRARY_PATH}"
++ export BROWSER=${GOOGLEEARTH_DATA_PATH}/bin/browserwrapper
++fi
++
+ LD_LIBRARY_PATH=.:${GOOGLEEARTH_DATA_PATH}:${LD_LIBRARY_PATH}
+ export LD_LIBRARY_PATH
+