diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-05-10 12:08:06 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-05-10 12:08:06 +0000 |
commit | 7f44a6d78db10be7420ddf32df1db0031c00b7f5 (patch) | |
tree | 3574ff36c6212acfb35a4a0471356dde73290eb4 /shell/source/unix/misc/kde-open-url.sh | |
parent | b54b7e131dc45291c0384abda53471e44c27432b (diff) |
INTEGRATION: CWS defaultbrowser (1.1.2); FILE ADDED
2004/04/27 07:59:33 obr 1.1.2.1: #i27120# new unix shell execute service implementation
Diffstat (limited to 'shell/source/unix/misc/kde-open-url.sh')
-rwxr-xr-x | shell/source/unix/misc/kde-open-url.sh | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/shell/source/unix/misc/kde-open-url.sh b/shell/source/unix/misc/kde-open-url.sh new file mode 100755 index 000000000000..b5f240e76843 --- /dev/null +++ b/shell/source/unix/misc/kde-open-url.sh @@ -0,0 +1,59 @@ +#!/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 + +# special handling for mailto: uris +if echo $1 | grep '^mailto:' > /dev/null; then + kmailservice $1 & +else + kfmclient openURL $1 & +fi + +exit 0 |