Register protocol - MozillaZine Knowledge Base
Popularity Report
![]() |
|||
![]() |
|||
![]() |
|||
![]() |
|||
![]() |
|||
![]() |
URL Tag Cloud
Bookmark History
Saved by 6 people (-1 private), first by anonymouse user on 2006-10-18
- Isaacmao on 2009-03-20 - Tags Tor
- Iscrow on 2008-04-05 - Tags protocol , tivo , howto , reference , media , stream , hack , firefox , windows , registry , del.icio.us
- Shija03 on 2008-01-25 - Tags protocol , windows , url , extending , custom , vnc , putty
- Carmour on 2007-08-21 - Tags autovue
- Easychen on 2007-02-27 - Tags ie , imported:del.icio.us , protocol
Public Sticky notes
Windows
On Windows, registration is done by the OS. To change the OS's settings, create a .reg file, and place this in the file:
REGEDIT4
[HKEY_CLASSES_ROOT\foo]
@="URL:foo Protocol"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\foo\shell]
[HKEY_CLASSES_ROOT\foo\shell\open]
[HKEY_CLASSES_ROOT\foo\shell\open\command]
@="\"C:\\Program Files\\Application\\program.exe\" \"%1\""
Replacing foo with the protocol you're specifying and C:\\Program Files\\Application\\program.exe with the program you want to run. Note that backslashes must be doubled and the additional slashes and quotes before the path must not be removed. Save the file, then double-click it to insert into the Windows registry.
See Registering an Application to a URL Protocol for additional information.
[edit]
Linux and Mac
- Type about:config into the address bar and press Enter.
- Right-click -> New -> Boolean -> Name: network.protocol-handler.external.foo -> Value -> true (Replacing foo with the protocol you're specifying)
- Right-click -> New -> String -> Name: network.protocol-handler.app.foo -> Value -> /path/to/app (Replacing foo with the protocol you're specifying and /path/to/app with the path to the application you want to run.
- Ensure network.protocol-handler.expose-all is set to true.
Highlighted by quirk3k


Public Comment