ebyblog students and information

Posted
27 November 2005 @ 9pm

Tagged
General

Firefox Protocol Handlers

This is a tip I found back when I was having various problems with external applications not working with Firefox the way I wanted. It also helps if you want to create your own protocols for testing/development, etc.

By protocol what I mean is the URL prefix such as aim:// mailto:// etc. Usually when you install a program that uses it’s own protocol prefix it will update your browser with the correct information. On linux and OSX though I’ve had mixed results and sometimes I want to send the information to other programs such as mplayer or VLC even on Windows. My original problem was with the Last.fm service whose radio player uses the lastfm:// protocol.

If you don’t already know you can type about:config into the address bar in Firefox and get advanced settings. This allows you to highly tweak the browser if you wish. It also allows you to add custom settings which is what we need to do. The general layout is:

network.protocol-handler.external.protocol = boolean (true or false)
network.protocol-handler.app.protocol = /path/to/program

I’ve found that there is no need to do the external boolean in my testing just the app one. So to add the lastfm:// protocol you would go to about:config and then right-click somewhere and choose new > string. You would then enter the following information:

Preference Name: network.protocol-handler.app.lastfm
Value: /path/to/lasfm/player (/home/ebyryan/Downloads/lastfm/player in my case)

For windows it would likely be the “C:\dir\to\file” structure while OSX would have similar syntax to above (try terminal). You will likely need to restart firefox to notice the change. I’ve also used this to handle iTunes (itmss) protocols. If your in an internal setting where you control people’s computers you could use this to create custom protocols for your intranet that launch specific software on the users computers when they click on items. Not sure how useful that is though.


8 Comments

Posted by
joy
2 January 2006 @ 5pm

Thank you very much! This works for me.


Posted by
Look What I Found » links for 2006-01-05
5 January 2006 @ 12am

[…] Firefox Protocol Handlers at ebyblog Was having trouble getting MarsEdit to work with Wordpress (ignore if you have no cllue what I’m talking about). Turns out the protocol handler was screwed up. This is what I used to fix. (tags: firefox protocol) […]


Posted by
vik
11 January 2006 @ 10am

Hi.

i am also trying to get it FF to handle lastfm:// but it does not seem to work. Which version of FF are you using (i am using 1.5 on XP) ?

i added the key/value:
network.protocol-handler.app.lastfm / C:\APPS\Last.fm Player\player.exe

i also added the key/value pair for good measure:
network.protocol-handler.protocol.lastfm / true

If you have some ideas please let me know.

Thanks


Posted by
Vik
13 January 2006 @ 6am

Hi

i managed to fix the problem. Here is an analysis and the solution.

i have actually downloaded a zipped version of the lastfm player. In other terms, it is not installed on my os. So, eventhough firefox can recognize the lastfm:// scheme and asks windows to launch the application at the given location, windows does nothing as the application is not ‘registered’. So to add my application to the registry, i made a REG script and ran it. My script which is based on the template provided by Microsoft for protocol handling on Windows (http://msdn.microsoft.com/workshop/networking/pluggable/overview/appendix_a.asp).

It now works fine.


Posted by
Maja
19 January 2006 @ 4pm

Yeah… it helped me too. Thanks!


[…] Ã¥æââ¬Å¡Ã¤Ã½ââ¬Â¢Ã¨Ã®Ã©Firefoxèïââ¬Â ÃÂ¥Ãâ Ã«lastfm://ÃÂ¥ÃÂÃÂèîîïüÃâÃ¥ùöèââ¬Â¡ÃªÃ¥àèèðÃâçââ¬ÂèLast.fmæââ¬â¢Ã­Ã¦ââ¬Âþåââ¢Ã¨Ã¦Ãâ Ã¢â¬âèââ‰â¬Â¦Ã¥ââ¬Â¦Ã¶Ã¤Ãȉâ¬âæââ¬â¢Ã­Ã¦ââ¬Âþåââ¢Ã¨? çÃâââ¬Â¹Ã§Ãâââ¬Â¹Ã¨Ã¿ââ¢Ã§Ã¯ââ¬Â¡Ã¥ðñçøÃ¥éÃÂââ¬Åäúââ¬Â Ã£ââ‰â¬Å¡ […]


Posted by
tecosystems » links for 2007-04-03
3 April 2007 @ 1am

[…] ebyblog û Blog Archive û Firefox Protocol Handlers how to manually tell Firefox what applications to use to handle protocols such as ’secondlife’ or ‘xmpp’ (tags: Firefox protocol handler secondlife xmpp) […]


Posted by
cornelius
22 March 2008 @ 3pm

Good tip. Assuming you’re using linux, can I ask which program you used to handle the itmss protocol?

Thanks.


Leave a Comment

HigherEd BlogCon Apple butter and Wikipedia