Søg i Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Læs mere

How to register a protocol to firefox 6.0.2?

  • 2 svar
  • 2 har dette problem
  • 3 visninger
  • Seneste svar af guzman23

more options

I updated firefox from version 3.5.15-12 to firefox 6.0.2. I am using fedora 12 and I used to have a script to open links such as for instance "sip://12345". But this seems to be not possible in the 6.0.2 version of firefox. I tried editing "about:config" but doesn't work. When I input "sip://12345" in the navigator bar firefox gives me a message telling me that there is not an application associated to the protocol sip and I would like to know how to add it as I did in the old version.

Thank you in advance

I updated firefox from version 3.5.15-12 to firefox 6.0.2. I am using fedora 12 and I used to have a script to open links such as for instance "sip://12345". But this seems to be not possible in the 6.0.2 version of firefox. I tried editing "about:config" but doesn't work. When I input "sip://12345" in the navigator bar firefox gives me a message telling me that there is not an application associated to the protocol sip and I would like to know how to add it as I did in the old version. Thank you in advance

Alle svar (2)

more options

Hi and first thank you. I have read that page some days ago and probed everything but didn't work. I mean I probed: "All Firefox versions", "Firefox 3.5 and above" and "Firefox versions up to 3.0" ways. But didn't work.

The "All firefox versions way" gave me an error about permissions telling me that something was for read-only. So to solve that I typed the following commands:

1) sudo gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type bool --set /desktop/gnome/url-handlers/sip/enabled true

2) sudo gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type string --set /desktop/gnome/url-handlers/sip/command '/usr/local/bin/program_to_open_sip.sh %s'

Where 'sip' is the protocol I want firefox to open. Then I travelled through gconf-editor and found that the two keys I had created with the two commands above didn't have a schema. So I tried to add a schema to them editing the file /etc/gconf/schemas/desktop_gnome_url_handlers.schemas and adding the following content:

<schema>
     <key>/schemas/desktop/gnome/url-handlers/sip/enabled</key>
     <applyto>/desktop/gnome/url-handlers/sip/enabled</applyto>
     <owner>gnome</owner>
     <type>bool</type>
     <default>true</default>
     <gettext_domain>gnome-vfs-2.0</gettext_domain>
     <locale name="C">
       <short>Whether the specified command should handle "sip" URLs</short>
       <long>True if the command specified in the "command" key should handle "sip" URLs.</long>
     </locale>
   </schema>
   <schema>
     <key>/schemas/desktop/gnome/url-handlers/sip/command</key>
     <applyto>/desktop/gnome/url-handlers/sip/command</applyto>
     <owner>gnome</owner>
     <type>string</type>
     <default>/usr/local/bin/program_to_open_sip.sh %s</default>
     <gettext_domain>gnome-vfs-2.0</gettext_domain>
     <locale name="C">
       <short>The handler for "sip" URLs</short>
       <long>The command used to handle "sip" URLs, if enabled.</long>
     </locale>
   </schema>
  <schema>
     <key>/schemas/desktop/gnome/url-handlers/sip/needs_terminal</key>
     <applyto>/desktop/gnome/url-handlers/sip/needs_terminal</applyto>
     <owner>gnome</owner>
     <type>bool</type>
     <default>false</default>
     <gettext_domain>gnome-vfs-2.0</gettext_domain>
     <locale name="C">
       <short>Run the command in a terminal</short>
       <long>True if the command used to handle this type of URL should be run in a terminal.</long>
     </locale>
   </schema>

After that I loaded the schema with:

gconftool-2 --install-schema-file=/etc/gconf/schemas/desktop_gnome_url_handlers.schemas


And applied it with the following:

gconftool-2 --apply-schema /schemas/desktop/gnome/url-handlers/sip/command

gconftool-2 --apply-schema /schemas/desktop/gnome/url-handlers/sip/enabled

gconftool-2 --apply-schema /schemas/desktop/gnome/url-handlers/sip/needs_terminal

I restarted the session and also the PC, then I opened firefox and typed in the navigator bar "sip://something" and firefox told me that it didn't know how to open that kind of things. Also when I go to Edit->preferences->Applications I see evertyhing but not sip. It's like I am not doing anything.

In addition I tried editing about:config keys as I mentioned in my first message but nothing happens...

I am a bit lost in this, the old version always asked me something like "What program do you want to use to open things like 'sip://123123'" and then it saved that configuration, but this version has something hidden.

Thank you again

Ændret af guzman23 den