Difference between revisions of "Thunderbird Export URLs"

From ArchWiki
Jump to: navigation, search
(Moved to appropriate category)
(25 intermediate revisions by 16 users not shown)
Line 1: Line 1:
[[Category:Internet and Email (English)]]
+
[[Category:Email Client]]
[[Category:HOWTOs (English)]]
+
{{Merge|Thunderbird}}
  
 +
= Two Ways of opening links in Thunderbird with Firefox =
 
There's an easy way to get Thunderbird sort of working with Firefox right out of the box with Arch.
 
There's an easy way to get Thunderbird sort of working with Firefox right out of the box with Arch.
  
Don't forget to type the following as root to install the 2 programs via pacman
+
==The preferred method (does not need require restarting Thunderbird)==
 +
Launch Thunderbird and navigate to the ''Config Editor'' by clicking the following menu items:
 +
 
 +
''Edit -> Preferences -> Advanced -> General -> Config Editor''.
 +
 
 +
Right click in the list of parameters, select ''New'' and ''String'' in the menu.
 +
 
 +
A box appears, asking you for the preference name. Put :
 
<pre>
 
<pre>
pacman -Sy mozilla-firefox
+
network.protocol-handler.app.http
pacman -Sy mozilla-thunderbird
+
 
</pre>
 
</pre>
 +
Click OK, the box then asks you for the value : set it to :
 +
<pre>
 +
/usr/bin/firefox
 +
</pre>
 +
 +
Do it again for the preference named ''network.protocol-handler.app.https'' .
 +
 +
'''N.B.''' Xfce4 users may want to set this preference value to "exo-open", which then will use the browser set up in "Preferred Applications",
 +
 +
You can now click on URL directly to launch them into Firefox !
  
Then go to your hidden thunderbird directory in your home directory.
+
==Alternative method==
 +
Go to your hidden thunderbird directory in your home directory.
 
<pre>
 
<pre>
 
cd /home/YOURUSERNAME/.thunderbird
 
cd /home/YOURUSERNAME/.thunderbird
Line 24: Line 42:
 
Go into that folder and find the file named prefs.js and open it with your text editor of choice.
 
Go into that folder and find the file named prefs.js and open it with your text editor of choice.
  
====IMPORTANT - Make absolute sure that Thunderbird is CLOSED.  Otherwise this change to the text file will have no effect.====
+
'''''IMPORTANT - Make absolute sure that Thunderbird is CLOSED.  Otherwise this change to the text file will have no effect.'''''
  
Add to the bottom of the prefs.js file the following lines and save the file.
+
Add to the bottom of the prefs.js file the following lines and save the file (alternatively, you can add the lines to a new file called user.js).
  
 
<pre>
 
<pre>
user_pref("network.protocol-handler.app.http", "/opt/mozilla/bin/firefox");
+
user_pref("network.protocol-handler.app.http", "/usr/bin/firefox");
user_pref("network.protocol-handler.app.https", "/opt/mozilla/bin/firefox");
+
user_pref("network.protocol-handler.app.https", "/usr/bin/firefox");
 
</pre>
 
</pre>
  
Then restart thunderbird.  URL's clicked in Thunderbird should now open in Firefox. Unfortunately they do not recieve focus. You still have to click on Firefox after clicking the URL.  If anyone knows a fix to this PLEASE edit this.
+
Note: As far as the standard firefox package from the extra repository is concerned, the binary path is now /usr/bin/firefox. To check the path of your firefox binary manually, use the command:
  
 +
<pre>
 +
which firefox
 +
</pre>
  
 +
==Setting Firefox to open links in new tabs/new windows==
 
You can change whether links are opened in new tabs or in new windows by opening up /usr/bin/mozilla-firefox in a text editor.
 
You can change whether links are opened in new tabs or in new windows by opening up /usr/bin/mozilla-firefox in a text editor.
  
Line 46: Line 68:
 
This setup will open URL's in a new window.  Simply comment the first line and uncomment the second line to open URL's in a new tab!
 
This setup will open URL's in a new window.  Simply comment the first line and uncomment the second line to open URL's in a new tab!
  
I hope this was helpful! Please refine this as needed!
+
Another way to do that is to select the right radiobutton in ''Edit/Preferences/Tabs'' in your Firefox browser menu.
 
+
Another way to do that is to select the right radiobutton in ''Edit/Preferences/Advanced/Tabbed Browsing'' in your Firefox browser menu.
+
Belive or not but it works on my PC :)
+

Revision as of 08:46, 13 June 2012

Merge-arrows-2.pngThis article or section is a candidate for merging with Thunderbird.Merge-arrows-2.png

Notes: please use the second argument of the template to provide more detailed indications. (Discuss in Talk:Thunderbird Export URLs#)

Two Ways of opening links in Thunderbird with Firefox

There's an easy way to get Thunderbird sort of working with Firefox right out of the box with Arch.

The preferred method (does not need require restarting Thunderbird)

Launch Thunderbird and navigate to the Config Editor by clicking the following menu items:

Edit -> Preferences -> Advanced -> General -> Config Editor.

Right click in the list of parameters, select New and String in the menu.

A box appears, asking you for the preference name. Put :

network.protocol-handler.app.http

Click OK, the box then asks you for the value : set it to :

/usr/bin/firefox

Do it again for the preference named network.protocol-handler.app.https .

N.B. Xfce4 users may want to set this preference value to "exo-open", which then will use the browser set up in "Preferred Applications",

You can now click on URL directly to launch them into Firefox !

Alternative method

Go to your hidden thunderbird directory in your home directory.

cd /home/YOURUSERNAME/.thunderbird

Or use a graphical filebrowser like Konqueror or Nautilus. Make sure to enable 'view hidden files and folders.'

You'll see a folder that looks something like this

ocj1fmh9.default

Go into that folder and find the file named prefs.js and open it with your text editor of choice.

IMPORTANT - Make absolute sure that Thunderbird is CLOSED. Otherwise this change to the text file will have no effect.

Add to the bottom of the prefs.js file the following lines and save the file (alternatively, you can add the lines to a new file called user.js).

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

Note: As far as the standard firefox package from the extra repository is concerned, the binary path is now /usr/bin/firefox. To check the path of your firefox binary manually, use the command:

which firefox

Setting Firefox to open links in new tabs/new windows

You can change whether links are opened in new tabs or in new windows by opening up /usr/bin/mozilla-firefox in a text editor.

There are two lines near the top that say:

OPEN_IN=new-window
#OPEN_IN=new-tab

This setup will open URL's in a new window. Simply comment the first line and uncomment the second line to open URL's in a new tab!

Another way to do that is to select the right radiobutton in Edit/Preferences/Tabs in your Firefox browser menu.