Jump to content

Trouble opening Firefox from links in Thunderbird?


cage47
 Share

Recommended Posts

Well, sort of.

 

I've finally figured how to open urls in thunderbird email messages without using scripts. It's really easy. The problem I was having was urls that didn't end in html or htm. Also I had a problem with Firefox downloading the page first and opening it locally instead of from the remote site. I tried using the script from mozilla but found a simpler way. In your home directory find your .thunderbird directory. go to your xxxx.default directory (the xxxx will be unique to your system). Find the prefs.js file. I know it says not to edit this file. But I did. add this line to the bottom. Oh do this not while thunderbird is open. If it is open it will rewrite the prefs.js file when it closes.

 

user_pref("network.protocol-handler.app.http", "/usr/bin/mozffremote");

 

(you can cut it and paste it right from here)

 

Now one thing. I am using the rpms from Chips website that you can link to from PClinuxonline. So if you installed it from another site you might want to check the install dir and change it in the line above accordingly. The thing is (I don't know if other packages include it but) Chip's rpms include the mozffremote script in /usr/bin. If your install doesn't include it I can email it to you. It allows you to open firefox even if it's already open. If it's not open it opens a new window and if it is open already it opens the new link in a new tab. Problem solved. Make it easier on yourself and just download Chips rpms and install those and you'll be all set.

 

Once I fix my mailto: protocol in Firefox I'll have the two working flawlessly as old mozilla.

Link to comment
Share on other sites

  • 1 month later...
The problem I was having was urls that didn't end in html or htm.

I had the same problem, and just fixed it by associating php mime types (application/x-php) with firefox.

 

I know it says not to edit this file. But I did. add this line to the bottom. Oh do this not while thunderbird is open. If it is open it will rewrite the prefs.js file when it closes.

Don't edit prefs.js - if you wish to manually add a preference put it in user.js and it will be safely added to prefs.js by firefox. See http://www.mozilla.org/support/firefox/edit for more info.

 

user_pref("network.protocol-handler.app.http", "/usr/bin/mozffremote");

It's unlikely users who have just downloaded firefox will have mozffremote. Use

 

% firefox -remote

 

to get the same effect. See http://www.mozilla.org/unix/remote.html and firefox -h for more details.

 

E.g. firefox -remote "openurl(http://www.mozilla.org,new-tab)"

will open the URL in a new tab in an existing firefox window.

 

Once I fix my mailto: protocol in Firefox I'll have the two working flawlessly as old mozilla.

I set up firefox to open mailto using Thunderbird. You can do this by setting thunderbird as your default mail client using gnome options, or by adding

 

user_pref("network.protocol-handler.app.mailto","/usr/bin/thunderbird");

 

to your user.js file in your profile directory. See http://opensource.weblogsinc.com/entry/7672458579278871/ for more information.

Link to comment
Share on other sites

The problem I was having was urls that didn't end in html or htm.

I had the same problem, and just fixed it by associating php mime types (application/x-php) with firefox.

 

I know it says not to edit this file. But I did. add this line to the bottom. Oh do this not while thunderbird is open. If it is open it will rewrite the prefs.js file when it closes.

Don't edit prefs.js - if you wish to manually add a preference put it in user.js and it will be safely added to prefs.js by firefox. See http://www.mozilla.org/support/firefox/edit for more info.

 

user_pref("network.protocol-handler.app.http", "/usr/bin/mozffremote");

It's unlikely users who have just downloaded firefox will have mozffremote. Use

 

% firefox -remote

 

That's why I pointed them to Chips rpms. It's included and makes it easier.

It's fine editing the prefs.js file. You just have to make sure you don't do it while the browser is open. Otherwise the changes get over written.

 

And using gnome settings doesn't help much if you don't use it. Like if you use KDE or Icewm. This is a fix EVERYone can use.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...