Article

Randy Wilson's picture
article
Reads:

3616

Score:
0
0
 
Comments:

0

Firefox Default Browser Script that Enables URLs and Attachments

Author Info

15 May 2007 - 2:05am
Submitted by: Randy Wilson

(View Disclaimer)

Problem

GroupWise 7.0 for Linux does not let you set the default web browser, and the system default set via Yast does not work either. A previous workaround runs the right web browser, but disables the ability to open other files such as spreadsheets that are attached.

Solution

In the page at http://www.novell.com/coolsolutions/tip/18752.html there is a script that sends clicked URLs to Firefox explicitly. However, non-URL files such as .xls spreadsheets also get sent to Firefox with that script. The following script supports both URLs and attachments:

# Script to redirect URLs sent to Konquerer to instead
#  be sent to Firefox.  GroupWise uses Konquerer for its
#  browser even though it's supposed to use the system
#  default, which is set to Firefox.

# get a lower-case version of the second argument
export second=`echo $2 | tr '[A-Z]' '[a-z]'`
# see if the second argument starts with 'http' or 'ftp', in which case it needs to go to firefox
if [ ${second:0:5} == "http:" ] || [ ${second:0:3} == "ftp:" ]; then
  # Groupwise also includes the word "exec" before its URL,
  #  so we strip that off first if it is there.
  if [ $1 == "exec" ]; then
    shift
  fi
  # Send the remaining arguments to firefox
  /usr/bin/firefox "$@"
else
  /opt/kde3/bin/kfmclient.bak "$@"
fi

Environment

  • SUSE Linux 10.2
  • GroupWise 7.0

Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).

It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.




User Comments

© 2013 Novell