LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Links in Thunderbird do not open Firefox on KDE (http://www.linuxquestions.org/questions/linux-software-2/links-in-thunderbird-do-not-open-firefox-on-kde-400834/)

chakatz 01-08-2006 07:25 AM

Links in Thunderbird do not open Firefox on KDE
 
I use Thunderbird for email and prefer Firefox as my web browser.

When I click on links from within Thunderbird, Konqueror is always opened.

If I choose Firefox as the default web browser in: KDE Control Center >
KDE Components > Component Chooser, Konqueror is still opened up but then
Konqueror seems to pass the link on to Firefox. So I end up with two
windows open, Konqueror with the URL in the Location box but without the
page being displayed and then a Firefox window. This is not fun. Any
suggestions?


Versions:
Debian Sarge
KDE 3.3.2
Thunderbird (Debian) 1.0.2
Firefox 1.0.4

T.Hsu 01-08-2006 08:08 AM

update-alternative --config x-www-browser ?

another universal solution, save the following codes to a file,

Code:

#!/bin/sh
export MOZILLA_FIVE_HOME="/opt/firefox"

url="$1"
if [ ! "$url" ]; then
        url="about :blank"
fi

if $MOZILLA_FIVE_HOME/mozilla-xremote-client -a firefox openURL\("$url",new-tab\); then
        exit 0
fi

$MOZILLA_FIVE_HOME/firefox "$url"

exit 0

make the file executable, add the following line to pref.js in thunderbird's profile directory, be sure edit that file while thunderbird isn't running

Code:

user_pref("network.protocol-handler.app.http", "/path/to/that/file");

chakatz 01-08-2006 09:28 AM

Thanks T.Hsu,

I used
Code:

update-alternatives --config x-www-browser
and it solved this longtime problem. Notice thought that it is 'update-alternatives' with an 's' and not
Quote:

update-alternative

chakatz 01-08-2006 09:31 AM

BTW,
Do you know the difference between using 'update-alternatives --config' instead of just changing the symlink manually?

T.Hsu 01-08-2006 09:31 AM

Yes, I've made a typo.


All times are GMT -5. The time now is 05:12 PM.