Subscribe

Enter your email to receive our updates in your inbox

How To: Make Firefox open an external program

Have you ever clicked on a link in Firefox that’s supposed to open an external application but it can’t for some reason? I recently encountered this problem when clicking on a link for TVUPlayer for Mac. The error message reported:

Firefox doesn’t know how to open this address, because the protocol (tvu) isn’t associated with any program.

I tried the same thing on Firefox in Windows however and got a helpful “Choose Application” dialog that allowed me to select the correct application to open by browsing to it’s location on my hard drive:

Launch Application dialog

The problem is when Firefox is asked to open something outside of the browsing environment on a Mac, it often needs a protocol which instructs it how to. This should be something that’s easy to address in Firefox Preferences but unfortunately it’s not. You have to access Firefox’s hidden settings to fix the problem.

To do so, type “about:config” in the URL bar:

screen-capture-10.png

You’ll probably receive a warning but just click “I’ll be careful, promise!”. What you then see before you is Firefox’s “hidden” settings. CMD-Click on any of the entries in the list and select “New” and “String”:

string.png

In the pop-up box that appears, type “network.protocol-handler.app.myprotocol” replacing myprotocol with the name of the application you want to open which in my case is “tvu” i.e. “network.protocol-handler.app.tvu”:

screen-capture-12.png

In the second dialog, enter the location on your hard drive where the application can be found. On Windows, this is usually something like “C:\Program Files\TVUPlayer”. On Mac however, I’ve struggled to workout how to define the absolute path to my hard drive and after several failures, I’m stuck with “/Applications/TVUPlayer”. There’s obviously something that goes before that in the path but I can’t quite work it out (sorry Mac users, maybe you can help here!).

screen-capture-11.png

You’ll now see your spanking new String listed in the list:

string2.png

That’s it, you’re done! When you next click on a link for the application in Firefox, it should open immediately or at least request if you’d like to open it.

Recent posts

Reader comments

  1. abstract

    Posted at 9:57 pm on Aug 30th

    Hi,

    Thanks. I’m looking for the same info, I’m on MAC and stuck at that point: making the link to /applications/TVUPlayer doesn’t work (my app is actually TVUPlayer_OSX1.0) and keeps displaying the same error message. Any Idea how to solve this? Thanks

  2. Nicholas Mead

    Posted at 8:07 am on Aug 31st

    I’m afraid I can’t get it to work on Mac either although it works fine on Windows. As I stated in the post, I think the secret could be working out how to define the absolute root path to your hard drive to enter in the String.

  3. Maurice

    Posted at 11:22 pm on Sep 26th

    Maybe you can try like this: “/Applications/TextEdit.app” instead of just “/Applications/”? So, in your case, maybe this will work “/Applications/TVUPlayer/TVUPlayer.app”? And also, I suspect Mac’s picky on a CAPS rule as well.

    You can use Terminal to check a “link” address by drag the program into the terminal window. Then copy and paste into a string for accurate with CAPS, etc.

  4. Kasper

    Posted at 11:07 am on Oct 4th

    Doesn’t anyone know how to fix the Mac issue?

    I’ve tried the terminal thing with drag’n'drop the TVU-player.. The path should be fine, but the result is the same.

Add your comments