You are not logged in.

#1 2009-12-16 11:52:58

archnemesis
Member
Registered: 2009-11-27
Posts: 53

How do I associate a protocol with a program?

I want to associate the 'cel' protocol with celestia so I can open cel:// urls but i'm not sure how to do it.

Offline

#2 2009-12-16 14:02:07

sisco311
Member
From: Romania
Registered: 2008-05-23
Posts: 112

Re: How do I associate a protocol with a program?

Opera:
Tools -> Preferences -> Advanced -> Programs and clicking "Add". Enter "cel" in the protocol field and enter "celestia" in the "Open with other application" field.

Repeat one more time with cel+http as the protocol.

Firefox:

Create a .js file in /usr/lib/xulrunner-1.9.1/defaults/pref.

celestia.js:

pref("network.protocol-handler.app.cel","/usr/bin/celestial");
pref("network.protocol-handler.warn-external.cel",false);
pref("network.protocol-handler.app.cel+http","/usr/bin/celestia");
pref("network.protocol-handler.warn-external.cel+http",false);

Or add the lines to ~/.mozilla/firefox/<whatever>.default/prefs.js


don't drink unwashed fruit juice.
i never make predictions, especially about the future.

Offline

#3 2009-12-17 02:18:14

archnemesis
Member
Registered: 2009-11-27
Posts: 53

Re: How do I associate a protocol with a program?

Thanks sisco, but I still get the same popup: "Firefox doesn't know how to open this address, because the protocol (cel) isn't associated with any program." I checked about:config and all of the new preferences are there with the settings you specified. I removed the typo in the first pref you listed though so that isnt the problem. Why is this so hard to do with firefox though? I had the same problem when using ubuntu and trying to change to default media player for firefox. Never figured that one out either, even after trying every fix I found on google.

Last edited by archnemesis (2009-12-17 02:22:52)

Offline

Board footer

Powered by FluxBB