MozillaZine

Default browser

From MozillaZine Knowledge Base

(Difference between revisions)
Revision as of 23:07, 1 March 2005
Anfi (Talk | contribs)

<-- Previous diff
Revision as of 14:25, 7 April 2005
Asqueella (Talk | contribs)
(clean up per In-House Style; have doubts about FC3 section...)
Next diff -->
Line 1: Line 1:
==Windows== ==Windows==
-In general, you can just go to If Tools > Options > General > Set Firefox As Default Browser. If that doesn't work for you, then you have two options:+In general, you can just go to "Tools -> Options -> General -> Set Firefox As Default Browser". If that doesn't work for you, then you have two options:
-===First Route===+===Using a third-party utility===
-There is a freeware utility that will save you a lot of work (see second route) by, in general, automating the steps for you [http://www.pc-tools.net/win32/freeware/setbrowser/]. But if that doesn't work, follow instructions below.+There is a freeware utility that will save you a lot of work by automating the steps for you [http://www.pc-tools.net/win32/freeware/setbrowser/]. But if that doesn't work, follow instructions below.
-===Second Route===+ 
-* In Windows XP, go to Start -> Control Panel -> Add/Remove Programs -> Set Program Access and Defaults (on the left) -> Custom and set Mozilla as your default browser. If that doesn't work:+===Setting default browser manually===
-* In Windows, go to Start -> Settings -> Folder Options -> File Types and assign the following things to Mozilla:+* In Windows XP, go to "Start -> Control Panel -> Add/Remove Programs -> Set Program Access and Defaults (on the left) -> Custom" and set Mozilla as your default browser. If that doesn't work:
 +* Go to "Start -> Settings -> Folder Options -> File Types" and assign the following things to Mozilla:
** URL:HyperText Transfer Protocol ** URL:HyperText Transfer Protocol
** URL:Protected HyperText Transfer Protocol ** URL:Protected HyperText Transfer Protocol
Line 13: Line 14:
** HTM File (optional) ** HTM File (optional)
Note: you may find the URL file types above under extension "N/A" or "(none)". Note: you may find the URL file types above under extension "N/A" or "(none)".
-* In Windows XP, you must go Start -> Control Panel first.+* In Windows XP, you must go "Start -> Control Panel" first.
** If your Control Panel choose "Category View", and click on "Performance and Maintenance". Then, click on "Files Types" in the left column under the heading "See Also". ** If your Control Panel choose "Category View", and click on "Performance and Maintenance". Then, click on "Files Types" in the left column under the heading "See Also".
-** If your Control Panel uses Classic View, then go Folder Options -> File Types.+** If your Control Panel uses Classic View, then go "Folder Options -> File Types".
-** In either case, set the above to Mozilla.+** In either case, set the above associations handler to Mozilla.
==Linux== ==Linux==
-You may have to change both Gnome and KDE config (see below). If you want the URLs to open in a new tab instead of the last tab opened, use this workaround :+You may have to change both Gnome and KDE config (see below). If you want the URLs to open in a new tab instead of the last tab opened, use this workaround:
 +: ''Note: This may need to be updated for latest versions of Firefox''
* Edit the "firefox" startup script in the firefox base directory * Edit the "firefox" startup script in the firefox base directory
* Search for a line containing "openURL" * Search for a line containing "openURL"
Line 26: Line 28:
===Gnome=== ===Gnome===
-*Go to Applications -> Desktop Preferences -> Advanced -> Preferred Applications.+* Go to "Applications -> Desktop Preferences -> Advanced -> Preferred Applications".
-*Select "Custom Web Browser", and type "mozilla %s" in the box. Note that a symlink of the "mozilla" script must be placed in one of the default PATHs (for example, a symlink of the "mozilla" script to "/usr/bin/" is common).+* Select "Custom Web Browser", and type "firefox %s" in the box (Mozilla Suite users susbtitute "firefox" with "mozilla"). Note that a symlink of the "firefox" script must be placed in one of the default PATHs (for example, a symlink of the "firefox" script to "/usr/bin/" is common).
===KDE=== ===KDE===
* Open kcontrol (KDE configuration center) * Open kcontrol (KDE configuration center)
-* Select components -> components chooser+* Select "Components -> Components chooser"
-* Open the "web browser" component+* Open the "Web browser" component
-* Check "the following browser" and type in "firefox" (or the name of your firefox startup command)+* Check "The following browser" and type in "firefox" ("mozilla")
-If you don't notice the "web browser" component :+If you don't notice the "Web browser" component :
-* Select components -> file association+* Select "Components -> file association"
-* Select text -> html in the MIME type tree.+* Select "text -> html" in the MIME type tree.
* Select "Add..." under "Application Preference Order". * Select "Add..." under "Application Preference Order".
* Write the command "firefox %U" and press ok (you need "%U" so you can load URLs that are non-local files) * Write the command "firefox %U" and press ok (you need "%U" so you can load URLs that are non-local files)
Line 44: Line 46:
====Fedora Core 3==== ====Fedora Core 3====
If you want the URLs to open in a new tab instead of new window, you need to modify different script: 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 startup script+* Edit the <tt>/usr/bin/firefox</tt> startup script
* Search for a line containing "openURL" * Search for a line containing "openURL"
* Replace * Replace
-<code>exec $MOZ_CLIENT_PROGRAM $MOZ_CLIENT_PROGRAM_PARAM "openurl($opt,new-window)" 2>/dev/null >/dev/null+ exec $MOZ_CLIENT_PROGRAM $MOZ_CLIENT_PROGRAM_PARAM "openurl($opt,new-window)" 2>/dev/null >/dev/null
-</code>+
with with
-<code>exec $MOZ_CLIENT_PROGRAM $MOZ_CLIENT_PROGRAM_PARAM "openurl($opt,new-tab)" 2>/dev/null >/dev/null+ exec $MOZ_CLIENT_PROGRAM $MOZ_CLIENT_PROGRAM_PARAM "openurl($opt,new-tab)" 2>/dev/null >/dev/null
-</code>+
==Mac OS X== ==Mac OS X==
Line 57: Line 57:
# 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 dont see Mozilla in the list, make sure it is in the "Applications" folder. # Click the "General" icon, and choose Mozilla from the default web browser pop-up menu. If you dont see Mozilla 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, email 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.

Revision as of 14:25, 7 April 2005

Contents

Windows

In general, you can just go to "Tools -> Options -> General -> Set Firefox As Default Browser". If that doesn't work for you, then you have two options:

Using a third-party utility

There is a freeware utility that will save you a lot of work by automating the steps for you [1]. But if that doesn't work, follow instructions below.

Setting default browser manually

  • In Windows XP, go to "Start -> Control Panel -> Add/Remove Programs -> Set Program Access and Defaults (on the left) -> Custom" and set Mozilla as your default browser. If that doesn't work:
  • Go to "Start -> Settings -> Folder Options -> File Types" and assign the following things to Mozilla:
    • URL:HyperText Transfer Protocol
    • URL:Protected HyperText Transfer Protocol
    • URL:File Transfer Protocol
    • HTML File
    • HTM File (optional)

Note: you may find the URL file types above under extension "N/A" or "(none)".

  • In Windows XP, you must go "Start -> Control Panel" first.
    • If your Control Panel choose "Category View", and click on "Performance and Maintenance". Then, click on "Files Types" in the left column under the heading "See Also".
    • If your Control Panel uses Classic View, then go "Folder Options -> File Types".
    • In either case, set the above associations handler to Mozilla.

Linux

You may have to change both Gnome and KDE config (see below). If you want the URLs to open in a new tab instead of the last tab opened, use this workaround:

Note: This may need to be updated for latest versions of Firefox
  • Edit the "firefox" startup script in the firefox base directory
  • Search for a line containing "openURL"
  • Replace _remote_cmd="openURL(${_optLast})" with _remote_cmd="openURL(${_optLast},new-tab)"

You can replace "new-tab" with "new-window" if you want to open the URLs in a new window

Gnome

  • Go to "Applications -> Desktop Preferences -> Advanced -> Preferred Applications".
  • Select "Custom Web Browser", and type "firefox %s" in the box (Mozilla Suite users susbtitute "firefox" with "mozilla"). Note that a symlink of the "firefox" 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)
  • Select "Components -> Components chooser"
  • Open the "Web browser" component
  • Check "The following browser" and type in "firefox" ("mozilla")

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

  • Select "Components -> file association"
  • Select "text -> html" in the MIME type tree.
  • Select "Add..." under "Application Preference Order".
  • Write the command "firefox %U" and press 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 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

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 Mozilla from the default web browser pop-up menu. If you dont see Mozilla 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.