Default browser: Difference between revisions

From MozillaZine Knowledge Base
Jump to navigationJump to search
m (added "See also" link to Applications open IE on Vista)
m (removed broken link (MS web site redirects link to an ad for IE9))
 
(37 intermediate revisions by 7 users not shown)
Line 1: Line 1:
The term "default browser" is used to describe the [http://en.wikipedia.org/wiki/Uniform_Resource_Locator URL] and file associations that determine which web browser is launched when you open an Internet shortcut or HTML file or when you click a link in a mail application like Thunderbird or Outlook Express. Note that [[MSN Messenger opens Internet Explorer |MSN Messenger]] and other applications may be "hard-coded" to open Internet Explorer, no matter which browser is set as the default.  Also, Internet service providers like  PeoplePC Online, Juno and NetZero may provide connection software that automatically launches Internet Explorer.
The term "default browser" is used to describe the [http://en.wikipedia.org/wiki/Uniform_Resource_Locator URL] and file associations that determine which web browser is launched when you open an Internet shortcut or HTML file or when you click a link in a mail application like Thunderbird or Outlook Express, if you have more than one web browser installed on your system.
 
Note that [[MSN Messenger opens Internet Explorer |MSN Messenger]] and other applications may be "hard-coded" to open Internet Explorer, no matter which browser is set as the default.  Also, Internet service providers like  PeoplePC Online, Juno and NetZero may provide connection software that automatically launches Internet Explorer.


==All systems==
==All systems==
You would normally set a default browser using the the options or preference settings within the web browser. For example,
When multiple browsers are installed, you can start any browser and use it, without needing to make it your default browser.  The default applies to which browser will open when you open an HTML document or when another application asks to open a web page.  You would normally set a default browser by using the options or preference settings within that web browser, for example:  
*'''Firefox 2:''' "[[Menu differences in Windows, Linux, and Mac |Tools -> Options]]  -> Main / System Defaults -> (checkmark) Always check to see if Firefox is the default browser on startup -> Check Now"
*'''Firefox 2:''' "[[Menu differences in Windows, Linux, and Mac |Tools -> Options]]  -> Main / System Defaults -> (checkmark) Always check to see if Firefox is the default browser on startup -> Check Now"
*'''Firefox 1.5:''' " Tools -> Options -> General -> Default Browser -> Check Now"
*'''Firefox 3 and above:''' "Tools -> Options -> Advanced -> General / System Defaults -> (checkmark) Always check to see if Firefox is the default browser on startup -> Check Now"
*'''Mozilla Suite and SeaMonkey:''' "[[Menu differences in Windows, Linux, and Mac|Edit -> Preferences]] -> Navigator -> Set Default Browser"
*'''Mozilla Suite and SeaMonkey 1.x:''' "[[Menu differences in Windows, Linux, and Mac|Edit -> Preferences]] -> Navigator -> Set Default Browser"
*'''SeaMonkey 2:''' "Edit -> Preferences -> Browser / Default Browser -> Set Default Browser"
 
Examples of options to set a non-Mozilla browser as the default, on Windows:
* '''Internet Explorer:'''   Tools -> Internet Options -> Programs (tab) -> [Make default]
* '''Google Chrome:'''   Wrench tool -> Options -> Basics (tab) -> [Make Google Chrome my default browser]
* '''Opera:'''   Alt ->  Settings ->  Preferences (Ctrl+F12)  -> Advanced  (tab) -> Programs -> Check if Opera is default browser on startup.
* '''Safari:'''   Alt-> Edit -> Preferences (Ctrl+,) ->  Advanced -> General (tab) -> Default web browser: {choose} Safari
 
Make sure that ''only one'' browser is set to check if it is the default. If those settings don't work, try setting another browser as the default browser, then reset your preferred browser as the default. Other suggestions are listed below.


Make sure that ''only one'' browser is set to check if it is the default. If  those settings don't work, try setting another browser as the default browser,  then reset Firefox, Mozilla Suite or SeaMonkey as the default. Other suggestions are listed below.
Note: If you have the [https://addons.mozilla.org/thunderbird/addon/5373 ThunderBrowse] add-on for Thunderbird installed and want to open a link in a browser, click on the ThunderBrowse button in the status bar (or disable/uninstall that add-on). Thunderbird will use the default browser if the button has a red line through it. Additionally, you can also right click anywhere in the page or on a link and choose the "Visit in Browser" menu item. ThunderBrowse will launch the link in an external browser.


==Windows==
==Windows==
Open Firefox and go to "Tools -> Options ->General -> Default Browser -> "Check Now" (or "Edit -> Preferences -> Navigator -> Set Default Browser" on Mozilla Suite/SeaMonkey). If that doesn't work, try the following:
Use the options or preference settings within your Mozilla browser as [[#All systems |shown above]], to set  Firefox or Mozilla Suite/SeaMonkey as the default browser.   If that doesn't work, try the following:


===If IE7 is installed===
===If a test version of IE7 is installed===
In some pre-release versions of Internet Explorer 7,  hyperlinks in Outlook or Outlook Express mail messages do not to work unless IE7 is the default browser [http://forums.mozillazine.org/viewtopic.php?t=458537].  [[Internet Explorer#Internet_Explorer_7 |Uninstall IE7]] (which restores IE6) or update IE7 to resolve the problem.  
''This applies to Windows XP only.''<br>
In some pre-release (test) versions of [[Internet Explorer#Internet_Explorer_7|Internet Explorer 7]],  hyperlinks in Outlook or Outlook Express mail messages do not work unless IE7 is the default browser [http://forums.mozillazine.org/viewtopic.php?t=458537].  To resolve the problem, either uninstall the test version of IE7 (which restores IE6) or upgrade Internet Explorer.


===Force Firefox to make itself the default===
===Force Firefox to make itself the default===
If Firefox already thinks that it is default, [[kill application | exit Firefox completely]], go to "Start Menu -> Run" and enter this into the text box:
If Firefox already thinks that it is default, [[kill application | exit Firefox completely]], go to "Start Menu -> Run" and enter this into the text box:
  <tt>firefox.exe -silent -nosplash -setDefaultBrowser</tt>
  <tt>firefox.exe -silent -setDefaultBrowser</tt>


===Setting default browser manually===
===Reset SeaMonkey as the default===
   
If another browser has been set as the default browser, including Internet Explorer 7,  Firefox 3,  or Opera 9,  you may be unable to reset SeaMonkey as the default.  As a workaround,  install Firefox 2.0.0.x (available [http://www.mozilla.com/en-US/firefox/all-older.html here]) and make it the default browser, then open SeaMonkey and set it as the default.  [https://bugzilla.mozilla.org/show_bug.cgi?id=442110#c9]
'''Windows Vista:''' "Start -> Default Programs -> Set Program Access and Computer Defaults -> Custom" [http://windowshelp.microsoft.com/Windows/en-US/Help/72b76107-08c3-47a7-92f4-f2085403e26b1033.mspx]
 
===Using Default Programs - Windows 7 and Vista===
To set your Mozilla browser as the default program on Windows Vista and above, go to "Start -> Default Programs -> Set your default programs", find your Mozilla browser in the list of programs and set it as the default. This will not affect the defaults for other user accounts on your computer.
[http://windows.microsoft.com/en-us/windows-vista/Change-which-programs-Windows-uses-by-default] [http://windows.microsoft.com/en-us/windows7/Change-which-programs-Windows-uses-by-default]
 
===Using Set Program Access and Defaults===
You can set the default browser using the feature,  "Set Program Access and Defaults" on Windows 2000 and XP.  On Windows Vista and above,  this feature is renamed "Set Program Access and Computer Defaults" and can be used to change the default for all users of the computer, if you are logged into Windows as an administrator.  [http://msdn2.microsoft.com/en-us/library/aa969379.aspx]
*'''Windows 2000 (SP3+)''':  "Start -> Control Panel -> Add or Remove Programs -> Set Program Access and Defaults"
*'''Windows XP (SP1+)''': "Start -> Control Panel -> Add or Remove Programs -> Set Program Access and Defaults -> Custom".  Click the icon to the right of "Custom", to expand the category.
*'''Windows Vista and Windows 7''': "Start -> Default Programs -> Set Program Access and Computer Defaults -> Custom" [http://windowshelp.microsoft.com/Windows/en-US/Help/72b76107-08c3-47a7-92f4-f2085403e26b1033.mspx] [http://windows.microsoft.com/en-us/windows7/Change-default-programs-using-Set-Program-Access-and-Computer-Defaults]
(On Windows XP and above, click the icon to the right of "Custom", to expand the category.)


'''Windows 2000 and Windows XP:''' "Start -> Control Panel -> Add or Remove Programs -> Set Program Access and Defaults -> Custom" (available in Windows 2000 SP3 and later and Windows XP SP1 and later releases [http://msdn2.microsoft.com/en-us/library/aa969379.aspx]).
You will see Internet Explorer and other installed browsers listed under "Choose a default Web browser" .  Select "Mozilla" (Suite), "SeaMonkey" or "Mozilla Firefox" (in some cases, "Mozilla Firefox" may not be listed; to add it back, reinstall Firefox [http://forums.mozillazine.org/viewtopic.php?t=523830]).  


After expanding the "Custom" category, you will see Internet Explorer and other installed browsers listed under "Choose a default Web browser".  Select "Mozilla" (Suite), "SeaMonkey" or "Mozilla Firefox" (in some cases, "Mozilla Firefox" may not be listed; to add it back, reinstall Firefox [http://forums.mozillazine.org/viewtopic.php?t=523830]).  
===Setting default browser manually===
You can manually set the default browser by selecting it as the the default program for individual file types and protocols, as follows:
*'''Windows XP and earlier''':  Open the Control Panel from the Windows Start menu.
**In Windows 2000 and earlier, or if Windows XP is using the Control Panel "Classic View": Click on "Folder Options -> File Types".
**In Windows XP, if using the Control Panel  "Category View":  Click on "Performance and Maintenance".  Then, click on "File Types" in the left column under the heading "See Also".
*'''Windows 7 and Vista:''' Click the Start button, open "Default Programs" and then click "Associate a file type or protocol with a program". For detailed instructions,  see the Microsoft article [http://windows.microsoft.com/en-US/windows-vista/Change-which-programs-Windows-uses-by-default here] for Vista or [http://windows.microsoft.com/en-us/windows7/Change-which-programs-Windows-uses-by-default here] for Windows 7.  '''Note:''' On Windows Vista (or above), you may be unable to associate the HTTP HTTPS or FTP protocols with SeaMonkey because it does not appear as an available option.  See [http://forums.mozillazine.org/viewtopic.php?t=652180 this forum topic] for additional information.  


If the above doesn't work or if the "Set Program Access and Defaults" feature isn't available in your Windows version, you can manually set the default browser as follows, in Windows XP or earlier:
Assign the following protocols and file types to the browser you wish to set as default:  
*In Windows XP using the Control Panel  "Category View", click on "Performance and Maintenance". Then, click on "File Types" in the left column under the heading "See Also".
* URL:HyperText Transfer Protocol (HTTP protocol)
*In Windows Control Panel or if Windows XP is using the Control Panel  "Classic View", click on "Folder Options -> File Types".
* URL:HyperText Transfer Protocol with Privacy (HTTPS protocol)
Assign the following file types to the browser you wish to set as default:  
* URL:File Transfer Protocol {FTP protocol)
* URL:HyperText Transfer Protocol
* URL:HyperText Transfer Protocol with Privacy
* URL:File Transfer Protocol  
* HTML File
* HTML File
* HTM File (optional)
* HTM File (optional)
Note that you may find the URL file types above under extension "N/A" or "(NONE)".
In Windows XP and earlier,  you can find the URL protocols listed above in File Types, under extension "N/A" or "(NONE)".


===Using a third-party utility===
===Using a third-party utility===
Line 49: Line 73:


===KDE===
===KDE===
* Open kcontrol (KDE configuration center).
* Open kcontrol (KDE configuration center), also known as systemsettings in KDE4.
* Go to "Components -> Components chooser -> Web browser".
* Go to "Components -> Components chooser -> Web browser".
* Check "The following browser", and type in "firefox" ("mozilla" for Mozilla).
* Check "The following browser", and type in "firefox" ("mozilla" for Mozilla).
Line 73: Line 97:
</pre>
</pre>
Doing so will present you with a list of installed browsers from which you can select Firefox.
Doing so will present you with a list of installed browsers from which you can select Firefox.
===Setting the browser that opens in Thunderbird - Linux===
If you are unable to launch Firefox (or another Mozilla browser) from URL links in a Thunderbird mail message,  or if you want to [[Changing the web browser invoked by Thunderbird|change the browser that is launched]], add the following lines to the  [[user.js file]], located in your [[Profile folder - Thunderbird |Thunderbird profile folder]]  (you may need to create the user.js file).  Change the path of the Firefox executable, if yours is not ''/usr/bin/firefox''.  [http://forums.mozillazine.org/viewtopic.php?t=632167] [http://forums.mozillazine.org/viewtopic.php?t=599654]
user_pref("network.protocol-handler.app.http", "/usr/bin/firefox");
user_pref("network.protocol-handler.app.https", "/usr/bin/firefox");
user_pref("network.protocol-handler.app.ftp", "/usr/bin/firefox");
Note: You can also use [[about:config]] to set these preferences.  See [[Register protocol]] and [[network.protocol-handler.app.(protocol)]] for more information.
If you are still unable to change the browser after modifying these settings, editing the [[mimeTypes.rdf]] file, also located in your Profile folder, can fix the problem. Simply use a text editor to search for all references to the browser that links are currently opening in and replace them with references to the browser that you would like links to open in.
If there are no references to browsers to be replaced in the [[mimeTypes.rdf]] file, then adding some new sections to this file can fix the problem.  Rather than directly editing the file, you can get Thunderbird to automatically add the required sections as follows:
* Navigate to "Edit --> Preferences --> Advanced" in the Thunderbird menus and click on the "Config Editor" button.
* Search for the following three entries:
** '''network.protocol-handler.warn-external.http'''
** '''network.protocol-handler.warn-external.https'''
** '''network.protocol-handler.warn-external.ftp'''
* Set the value of each of these three entries to '''true''' (you can do this by double-clicking on each entry, then close the "about:config" window and click "OK" on the "Thunderbird Preferences" window).
Having completed these steps, the next time you click on an http, https or ftp link in Thunderbird, you will be presented with the "Launch Application" window.  Press the "Choose" button on this window to select your browser of choice.  This will add the required entry to the [[mimeTypes.rdf]] file.  This is a one-time task; having selected the browser once, links of the same type will now always be opened with the selected browser.


==Mac OS X==
==Mac OS X==
# [http://www.apple.com/safari/ Download Safari] if you do not already have it.
# [http://www.apple.com/safari/ Download Safari] if you do not already have it.
# In Safari, choose "Preferences" from the menu.
# In Safari, choose "Preferences" from the menu.
# Click the "General" icon, and choose Mozilla from the default web browser pop-up menu.  If you don't see Mozilla in the list, make sure it is in the "Applications" folder.
# Click the "General" icon and choose your Mozilla browser from the default web browser pop-up menu.  If you don't see it in the list, make sure it is in the "Applications" folder.
# If you don't want to use Safari, there's [http://www.rubicode.com/Software/RCDefaultApp/ RCDefaultApp], a system preference panel which lets you set default browser, e-mail client, MIME types, and other options.
# If you don't want to use Safari, there's [http://www.rubicode.com/Software/RCDefaultApp/ RCDefaultApp], a system preference panel which lets you set default browser, e-mail client, MIME types, and other options.


Line 88: Line 133:
*[https://bugzilla.mozilla.org/show_bug.cgi?id=352424 Bug 352424 - Use the Vista Default Application API]
*[https://bugzilla.mozilla.org/show_bug.cgi?id=352424 Bug 352424 - Use the Vista Default Application API]
*[https://bugzilla.mozilla.org/show_bug.cgi?id=369314 Bug 369314 - Trunk install takes over as default browser from a release build]
*[https://bugzilla.mozilla.org/show_bug.cgi?id=369314 Bug 369314 - Trunk install takes over as default browser from a release build]
*[https://bugzilla.mozilla.org/show_bug.cgi?id=424366  Bug 424366 -  Seamonkey can't be set as default browser in Vista SP1]
*[https://bugzilla.mozilla.org/show_bug.cgi?id=442110  Bug 442110 -  SeaMonkey does not recognize change of system services (http, https, html etc.), does not ask to set itself as default browser]


==See also==
==See also==
*[[Applications open IE on Vista]]
*[[Applications open IE on Vista]]
*[[Windows error opening Internet shortcut or local HTML file - Firefox]]


==External links==
==External links==
*[http://support.microsoft.com/kb/257464/en-us Hyperlinks in an e-mail message do not work in Office 2000 or in Office 2002 programs]
*[http://support.mozilla.com/kb/Setting+Firefox+as+the+default+browser+does+not+work Setting Firefox as the default browser does not work (Firefox Support)]
*[http://support.microsoft.com/kb/810565/en-us Hyperlinks open in Internet Explorer instead of in default browser or Help and Support Center]  (Windows XP and Windows XP SP1)
* [http://www.howtogeek.com/howto/ubuntu/set-the-default-browser-on-ubuntu-from-the-command-line/ Set the Default Browser on Ubuntu From the Command Line]
*[http://support.microsoft.com/kb/810649/en-us Hyperlinks Open in Internet Explorer Instead of in the Default Browser]  (Windows 2000 SP3)
*[http://www.microsoft.com/windows/IE/community/columns/defaultbrowser.mspx Playing favorites: How to control which browser is 'Head Honcho' on your PC]
 
[[Category:Issues (Firefox)]]
[[Category:Issues (Firefox)]]
[[Category:Issues (Mozilla Suite)]]
[[Category:Issues (Mozilla Suite)]]
[[Category:Configuration]]
[[Category:Configuration]]
[[Category:Integration with external applications - browser]]

Latest revision as of 18:00, 16 October 2012

The term "default browser" is used to describe the URL and file associations that determine which web browser is launched when you open an Internet shortcut or HTML file or when you click a link in a mail application like Thunderbird or Outlook Express, if you have more than one web browser installed on your system.

Note that MSN Messenger and other applications may be "hard-coded" to open Internet Explorer, no matter which browser is set as the default. Also, Internet service providers like PeoplePC Online, Juno and NetZero may provide connection software that automatically launches Internet Explorer.

All systems

When multiple browsers are installed, you can start any browser and use it, without needing to make it your default browser. The default applies to which browser will open when you open an HTML document or when another application asks to open a web page. You would normally set a default browser by using the options or preference settings within that web browser, for example:

  • Firefox 2: "Tools -> Options -> Main / System Defaults -> (checkmark) Always check to see if Firefox is the default browser on startup -> Check Now"
  • Firefox 3 and above: "Tools -> Options -> Advanced -> General / System Defaults -> (checkmark) Always check to see if Firefox is the default browser on startup -> Check Now"
  • Mozilla Suite and SeaMonkey 1.x: "Edit -> Preferences -> Navigator -> Set Default Browser"
  • SeaMonkey 2: "Edit -> Preferences -> Browser / Default Browser -> Set Default Browser"

Examples of options to set a non-Mozilla browser as the default, on Windows:

  • Internet Explorer:  Tools -> Internet Options -> Programs (tab) -> [Make default]
  • Google Chrome:  Wrench tool -> Options -> Basics (tab) -> [Make Google Chrome my default browser]
  • Opera:  Alt -> Settings -> Preferences (Ctrl+F12) -> Advanced (tab) -> Programs -> Check if Opera is default browser on startup.
  • Safari:  Alt-> Edit -> Preferences (Ctrl+,) -> Advanced -> General (tab) -> Default web browser: {choose} Safari

Make sure that only one browser is set to check if it is the default. If those settings don't work, try setting another browser as the default browser, then reset your preferred browser as the default. Other suggestions are listed below.

Note: If you have the ThunderBrowse add-on for Thunderbird installed and want to open a link in a browser, click on the ThunderBrowse button in the status bar (or disable/uninstall that add-on). Thunderbird will use the default browser if the button has a red line through it. Additionally, you can also right click anywhere in the page or on a link and choose the "Visit in Browser" menu item. ThunderBrowse will launch the link in an external browser.

Windows

Use the options or preference settings within your Mozilla browser as shown above, to set Firefox or Mozilla Suite/SeaMonkey as the default browser. If that doesn't work, try the following:

If a test version of IE7 is installed

This applies to Windows XP only.
In some pre-release (test) versions of Internet Explorer 7, hyperlinks in Outlook or Outlook Express mail messages do not work unless IE7 is the default browser [1]. To resolve the problem, either uninstall the test version of IE7 (which restores IE6) or upgrade Internet Explorer.

Force Firefox to make itself the default

If Firefox already thinks that it is default, exit Firefox completely, go to "Start Menu -> Run" and enter this into the text box:

firefox.exe -silent -setDefaultBrowser

Reset SeaMonkey as the default

If another browser has been set as the default browser, including Internet Explorer 7, Firefox 3, or Opera 9, you may be unable to reset SeaMonkey as the default. As a workaround, install Firefox 2.0.0.x (available here) and make it the default browser, then open SeaMonkey and set it as the default. [2]

Using Default Programs - Windows 7 and Vista

To set your Mozilla browser as the default program on Windows Vista and above, go to "Start -> Default Programs -> Set your default programs", find your Mozilla browser in the list of programs and set it as the default. This will not affect the defaults for other user accounts on your computer. [3] [4]

Using Set Program Access and Defaults

You can set the default browser using the feature, "Set Program Access and Defaults" on Windows 2000 and XP. On Windows Vista and above, this feature is renamed "Set Program Access and Computer Defaults" and can be used to change the default for all users of the computer, if you are logged into Windows as an administrator. [5]

  • Windows 2000 (SP3+): "Start -> Control Panel -> Add or Remove Programs -> Set Program Access and Defaults"
  • Windows XP (SP1+): "Start -> Control Panel -> Add or Remove Programs -> Set Program Access and Defaults -> Custom". Click the icon to the right of "Custom", to expand the category.
  • Windows Vista and Windows 7: "Start -> Default Programs -> Set Program Access and Computer Defaults -> Custom" [6] [7]

(On Windows XP and above, click the icon to the right of "Custom", to expand the category.)

You will see Internet Explorer and other installed browsers listed under "Choose a default Web browser" . Select "Mozilla" (Suite), "SeaMonkey" or "Mozilla Firefox" (in some cases, "Mozilla Firefox" may not be listed; to add it back, reinstall Firefox [8]).

Setting default browser manually

You can manually set the default browser by selecting it as the the default program for individual file types and protocols, as follows:

  • Windows XP and earlier: Open the Control Panel from the Windows Start menu.
    • In Windows 2000 and earlier, or if Windows XP is using the Control Panel "Classic View": Click on "Folder Options -> File Types".
    • In Windows XP, if using the Control Panel "Category View": Click on "Performance and Maintenance". Then, click on "File Types" in the left column under the heading "See Also".
  • Windows 7 and Vista: Click the Start button, open "Default Programs" and then click "Associate a file type or protocol with a program". For detailed instructions, see the Microsoft article here for Vista or here for Windows 7. Note: On Windows Vista (or above), you may be unable to associate the HTTP HTTPS or FTP protocols with SeaMonkey because it does not appear as an available option. See this forum topic for additional information.

Assign the following protocols and file types to the browser you wish to set as default:

  • URL:HyperText Transfer Protocol (HTTP protocol)
  • URL:HyperText Transfer Protocol with Privacy (HTTPS protocol)
  • URL:File Transfer Protocol {FTP protocol)
  • HTML File
  • HTM File (optional)

In Windows XP and earlier, you can find the URL protocols listed above in File Types, under extension "N/A" or "(NONE)".

Using a third-party utility

A third-party utility to set the default browser will save you a lot of work by automating the steps for you. The freeware utilities DefaultBrowser and SetBrowser will work for Firefox and Mozilla Suite as well as other installed browsers.

Linux

Gnome

This may be slightly different, depending on which distribution you are using.

  • Go to "Applications -> Desktop Preferences -> Advanced -> Preferred Applications".
  • Select "Custom Web Browser", and type "firefox %s" in the box ("mozilla %s" for Mozilla). Note that a symlink of the "firefox" or the "mozilla" script must be placed in one of the default PATHs (for example, a symlink of the "firefox" script to "/usr/bin/" is common).

KDE

  • Open kcontrol (KDE configuration center), also known as systemsettings in KDE4.
  • Go to "Components -> Components chooser -> Web browser".
  • Check "The following browser", and type in "firefox" ("mozilla" for Mozilla).

If you don't notice the "Web browser" component:

  • Go to "Components -> File association -> text -> html".
  • Select "Add..." under "Application Preference Order".
  • Write the command firefox %U (mozilla %U for Mozilla) and select OK. You need "%U" so you can load URLs that are non-local files.

Distribution Specific

Fedora Core 3

If you want the URLs to open in a new tab instead of new window, you need to modify different script:

  • Edit the /usr/bin/firefox or the /usr/bin/mozilla startup script.
  • Search for a line containing "openURL".
  • Replace
exec $MOZ_CLIENT_PROGRAM $MOZ_CLIENT_PROGRAM_PARAM "openurl($opt,new-window)" 2>/dev/null >/dev/null

with

exec $MOZ_CLIENT_PROGRAM $MOZ_CLIENT_PROGRAM_PARAM "openurl($opt,new-tab)" 2>/dev/null >/dev/null

Debian

If you want to make Mozilla Firefox your default browser, point the symlink /etc/alternatives/x-www-browser to /usr/bin/mozilla-firefox or other path where Mozilla Firefox is installed. One easy way to do this is to execute the following command as root:

update-alternatives --config x-www-browser

Doing so will present you with a list of installed browsers from which you can select Firefox.

Setting the browser that opens in Thunderbird - Linux

If you are unable to launch Firefox (or another Mozilla browser) from URL links in a Thunderbird mail message, or if you want to change the browser that is launched, add the following lines to the user.js file, located in your Thunderbird profile folder (you may need to create the user.js file). Change the path of the Firefox executable, if yours is not /usr/bin/firefox. [9] [10]

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

Note: You can also use about:config to set these preferences. See Register protocol and network.protocol-handler.app.(protocol) for more information.

If you are still unable to change the browser after modifying these settings, editing the mimeTypes.rdf file, also located in your Profile folder, can fix the problem. Simply use a text editor to search for all references to the browser that links are currently opening in and replace them with references to the browser that you would like links to open in.

If there are no references to browsers to be replaced in the mimeTypes.rdf file, then adding some new sections to this file can fix the problem. Rather than directly editing the file, you can get Thunderbird to automatically add the required sections as follows:

  • Navigate to "Edit --> Preferences --> Advanced" in the Thunderbird menus and click on the "Config Editor" button.
  • Search for the following three entries:
    • network.protocol-handler.warn-external.http
    • network.protocol-handler.warn-external.https
    • network.protocol-handler.warn-external.ftp
  • Set the value of each of these three entries to true (you can do this by double-clicking on each entry, then close the "about:config" window and click "OK" on the "Thunderbird Preferences" window).

Having completed these steps, the next time you click on an http, https or ftp link in Thunderbird, you will be presented with the "Launch Application" window. Press the "Choose" button on this window to select your browser of choice. This will add the required entry to the mimeTypes.rdf file. This is a one-time task; having selected the browser once, links of the same type will now always be opened with the selected browser.

Mac OS X

  1. Download Safari if you do not already have it.
  2. In Safari, choose "Preferences" from the menu.
  3. Click the "General" icon and choose your Mozilla browser from the default web browser pop-up menu. If you don't see it in the list, make sure it is in the "Applications" folder.
  4. If you don't want to use Safari, there's RCDefaultApp, a system preference panel which lets you set default browser, e-mail client, MIME types, and other options.

Related bug reports

See also

External links