Gnuru.org
Productive Linux


Subscribe

 Subscribe via Feedburner in a reader

Enter your email address:

Delivered by FeedBurner


Login
Login:
Password:



Don't have an account?
Sign up to Gnuru.org
Forgot your password?

Thunderbird - the default web browser
21 December 2005 @ 17:05 GMT
by Paul

Since I upgraded Thunderbird, I've been finding that when I click on a link in Thunderbird, it opens the link in Konqueror. Now, I have no problems with Konqueror - it's OK as a web browser - but my browser of choice, at the moment, is Firefox.

Firstly, because Thunderbird is a gnome application, I tried setting my preferred browser in the Gnome Control Center to Firefox. This didn't work, however, probably because I'm using KDE.

I then did:

dpkg-reconfigure mozilla-thunderbird

This recommended that I use the 'Debian' option which I did. I later found that this set the Thunderbird preferences in /etc/mozilla-thunderbird/auto-config.js. This file recommened that I use update-alternatives rather than edit auto-config.js. So, far so complicated.

Doing this:

update-alternatives --display x-www-browser

Led to this output:

x-www-browser - status is auto.
 link currently points to /usr/bin/konqueror
/usr/bin/konqueror - priority 100
/usr/bin/mozilla - priority 80
 slave x-www-browser.1.gz: /usr/share/man/man1/mozilla.1.gz
/usr/bin/firefox - priority 70
 slave x-www-browser.1.gz: /usr/share/man/man1/firefox.1.gz
Current `best' version is /usr/bin/konqueror

So, I want to change this to firefox. so did:

update-alternatives --config x-www-browser

This presented me with three options, I chose the one related to /usr/bin/firefox. Now, whenever I click on a link in Thunderbird, it is displayed in Firefox.




I too have experienced this same problem using KDE under Mandriva 2006 and no matter what I tried Thunderbird still opened Konqueror. It drove me crazy. I read your post and tried what you suggested but of course nothing helped. But it got me thinking.

From the the command prompt I did a 'set' and I noticed:

BROWSER=/usr/bin/www-browser

Ok, I checked that out and found a script:

(snip)
#using KDE
if [[ -n "$KDE_FULL_SESSION" ]]; then
NEWBROWSER=`grep -m 1 'BrowserApplication=' $HOME/.kde/share/config/kdeglobals 2>/dev/null`
[[ -z "$NEWBROWSER" ]] && NEWBROWSER=`grep -m 1 'BrowserApplication=' /etc/kde/kdeglobals 2>/dev/null`
if [[ -n "$NEWBROWSER" ]]; then BROWSER=`echo $NEWBROWSER | sed -e 's/BrowserApplication=//' -e 's/!//'`
fi
fi

strip_browser_var

[[ -z "$BROWSER" ]] && BROWSER=`which mozilla-firefox 2> /dev/null`
[[ -z "$BROWSER" ]] && [[ -n "$KDE_FULL_SESSION" ]] && which kfmclient > /dev/null 2>&1 && BROWSER="kfmclient openProfile webbrowsing"
[[ -z "$BROWSER" ]] && BROWSER=`which epiphany 2> /dev/null`
[[ -z "$BROWSER" ]] && BROWSER=`which galeon 2> /dev/null`
[[ -z "$BROWSER" ]] && BROWSER=`which mozilla 2> /dev/null`
[[ -z "$BROWSER" ]] && which kfmclient > /dev/null 2>&1 && BROWSER="kfmclient openProfile webbrowsing"
[[ -z "$BROWSER" ]] && which links > /dev/null 2>&1 && BROWSER="xvt -e links"

So it's looking for mozilla-firefox, not firefox, therefore it's defaultong to konqueror. Also, I had installed firefox under the user so it sits in /home/frank/firefox. I tried symbolic links and other stuff but settled on the brute force method of adding this line to near the end of script:
(snip)

# b.c.s.i. vvvvvv this line added
BROWSER=/home/frank/firefox/firefox

if [[ -n "$BROWSER" ]]; then
exec $BROWSER "$@"
else
echo "no web browser detected"
fi

Thunderbird now calls firefox instead of konqueror.


Posted by Guest User on 2006-10-18 16:10:16.

From gnome there is a little program that allows you to change this. I had a similar problem with debian-sensible-browser acting a little, well, insensible ;-)

System->Preferences->Default Applications on an ubuntu system.

I have a similar problem right now because I need a mozilla-firefox package to get the embedded debian widget I am using in some code which depends on firefox which overwrites my settings pointing /usr/bin/firefox and friends to /usr/local/bin/firefox/

sometimes user friendly means proactive hacker hostile.

sparkes


Posted by Guest User on 2006-01-12 14:14:35.
Comments disabled