summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2004-05-10 12:07:56 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2004-05-10 12:07:56 +0000
commitb54b7e131dc45291c0384abda53471e44c27432b (patch)
tree3c1c6f691e8f56e29f2ef8dad64f19ffcb654d35 /shell
parent07ffc336206dbdd8270fc489958456dbabc393a6 (diff)
INTEGRATION: CWS defaultbrowser (1.1.2); FILE ADDED
2004/04/30 07:01:13 obr 1.1.2.1: #i14310# need a wrapper script even for GNOME
Diffstat (limited to 'shell')
-rw-r--r--shell/source/unix/misc/gnome-open-url.sh54
1 files changed, 54 insertions, 0 deletions
diff --git a/shell/source/unix/misc/gnome-open-url.sh b/shell/source/unix/misc/gnome-open-url.sh
new file mode 100644
index 000000000000..8ba1da3a4472
--- /dev/null
+++ b/shell/source/unix/misc/gnome-open-url.sh
@@ -0,0 +1,54 @@
+#!/bin/sh
+
+# restore search path for dynamic loader to system defaults to
+# avoid version clashes of mozilla libraries shipped with OOo
+case `uname -s` in
+ AIX)
+ LIBPATH=$SYSTEM_LIBPATH
+ if [ -z "$LIBPATH" ]; then
+ unset LIBPATH SYSTEM_LIBPATH
+ else
+ export LIBPATH; unset SYSTEM_LIBPATH
+ fi
+ ;;
+
+ Darwin)
+ DYLD_LIBRARY_PATH=$SYSTEM_DYLD_LIBRARY_PATH
+ if [ -z "$DYLD_LIBRARY_PATH" ]; then
+ unset DYLD_LIBRARY_PATH SYSTEM_DYLD_LIBRARY_PATH
+ else
+ export DYLD_LIBRARY_PATH; unset SYSTEM_DYLD_LIBRARY_PATH
+ fi
+ ;;
+
+ HP-UX)
+ SHLIB_PATH=$SYSTEM_SHLIB_PATH
+ if [ -z "$SHLIB_PATH" ]; then
+ unset SHLIB_PATH SYSTEM_SHLIB_PATH
+ else
+ export SHLIB_PATH; unset SYSTEM_SHLIB_PATH
+ fi
+ ;;
+
+ IRIX*)
+ LD_LIBRARYN32_PATH=$SYSTEM_LD_LIBRARYN32_PATH
+ if [ -z "$LD_LIBRARYN32_PATH" ]; then
+ unset LD_LIBRARYN32_PATH SYSTEM_LD_LIBRARYN32_PATH
+ else
+ export LD_LIBRARYN32_PATH; unset $SYSTEM_LD_LIBRARYN32_PATH
+ fi
+ ;;
+
+ *)
+ LD_LIBRARY_PATH=$SYSTEM_LD_LIBRARY_PATH
+ if [ -z "$LD_LIBRARY_PATH" ]; then
+ unset LD_LIBRARY_PATH SYSTEM_LD_LIBRARY_PATH
+ else
+ export LD_LIBRARY_PATH; unset SYSTEM_LD_LIBRARY_PATH
+ fi
+ ;;
+esac
+
+"$0.bin" $1 &
+
+exit 0