How to associate a new protocol with a new program in firefox?
I'm trying to prepare a firefox global config in linux to force any new user to use (import by firefox) those specific settings in their local firefox config.
I've already done most of the the prefs part (using local-settings.js and mozilla.cfg config files) but now I need to associate a new protocol (e.g. foo://qw3xdfczYgUnz) to be opened, every time (automatically), by an specific app (e.g. /usr/bin/php /opt/FOO/foo.php %s) when this kind of url is written in Location bar.
All kind of help I found in Mozilla support is about gnome (http://kb.mozillazine.org/Register_protocol) but I'm using icewm desktop so I don't have gconftool-2 command to associate new protocol in OS. I've already write the prefs related to network.protocol-handler.* but it doesn't work.
- pref("network.protocol-handler.expose.foo", false);
- pref("network.protocol-handler.external.foo", true);
- pref("network.protocol-handler.app.foo", "/usr/bin/php /opt/FOO/foo.php %s");
I would like that any new system user auto-"import" this association like a lockPrefs from mozilla.cfg or using OS association or both.
How could I do that? Thanks a lot!
Bewerkt door dpatino op