Debian Kde Iceweasel/Firefox: setting custom protocols handlers











up vote
4
down vote

favorite












I recently switched from Ubuntu 10.04 gnome to Debian wheezy Kde.



Everything's work fine, except to the Iceweasel/firefox custom protocols!



I added komodo.protocol in my ~/.kde/share/services with:



[Protocol]
exec=python /path/to/my/script.py "%u"
protocol=komodo
input=none
output=none
helper=true
listing=
reading=false
writing=false
makedir=false
deleting=false


This works for chrom(e|ium), but not for firefox.



I've read about firefox should use the gnome configs even under Kde, so I tried:



gconftool-2 -s /desktop/gnome/url-handlers/komodo/enabled --type Boolean true
gconftool-2 -s /desktop/gnome/url-handlers/komodo/command 'python /path/to/my/script.py %s' --type String


that used to work when I was on ubuntu, but it doesn't on kde.



Any idea?



EDIT



An example link: komodo:/var/www/app/0/Modules/Controller/Node/Controller_Node.class.php:1202



And if I run the command komodo /var/www/app/0/Modules/Controller/Node/Controller_Node.class.php:1202 from the terminal it works correctly; my python script simply check few things and then runs this command - but with firefox/iceweasel it never gets triggered.










share|improve this question




























    up vote
    4
    down vote

    favorite












    I recently switched from Ubuntu 10.04 gnome to Debian wheezy Kde.



    Everything's work fine, except to the Iceweasel/firefox custom protocols!



    I added komodo.protocol in my ~/.kde/share/services with:



    [Protocol]
    exec=python /path/to/my/script.py "%u"
    protocol=komodo
    input=none
    output=none
    helper=true
    listing=
    reading=false
    writing=false
    makedir=false
    deleting=false


    This works for chrom(e|ium), but not for firefox.



    I've read about firefox should use the gnome configs even under Kde, so I tried:



    gconftool-2 -s /desktop/gnome/url-handlers/komodo/enabled --type Boolean true
    gconftool-2 -s /desktop/gnome/url-handlers/komodo/command 'python /path/to/my/script.py %s' --type String


    that used to work when I was on ubuntu, but it doesn't on kde.



    Any idea?



    EDIT



    An example link: komodo:/var/www/app/0/Modules/Controller/Node/Controller_Node.class.php:1202



    And if I run the command komodo /var/www/app/0/Modules/Controller/Node/Controller_Node.class.php:1202 from the terminal it works correctly; my python script simply check few things and then runs this command - but with firefox/iceweasel it never gets triggered.










    share|improve this question


























      up vote
      4
      down vote

      favorite









      up vote
      4
      down vote

      favorite











      I recently switched from Ubuntu 10.04 gnome to Debian wheezy Kde.



      Everything's work fine, except to the Iceweasel/firefox custom protocols!



      I added komodo.protocol in my ~/.kde/share/services with:



      [Protocol]
      exec=python /path/to/my/script.py "%u"
      protocol=komodo
      input=none
      output=none
      helper=true
      listing=
      reading=false
      writing=false
      makedir=false
      deleting=false


      This works for chrom(e|ium), but not for firefox.



      I've read about firefox should use the gnome configs even under Kde, so I tried:



      gconftool-2 -s /desktop/gnome/url-handlers/komodo/enabled --type Boolean true
      gconftool-2 -s /desktop/gnome/url-handlers/komodo/command 'python /path/to/my/script.py %s' --type String


      that used to work when I was on ubuntu, but it doesn't on kde.



      Any idea?



      EDIT



      An example link: komodo:/var/www/app/0/Modules/Controller/Node/Controller_Node.class.php:1202



      And if I run the command komodo /var/www/app/0/Modules/Controller/Node/Controller_Node.class.php:1202 from the terminal it works correctly; my python script simply check few things and then runs this command - but with firefox/iceweasel it never gets triggered.










      share|improve this question















      I recently switched from Ubuntu 10.04 gnome to Debian wheezy Kde.



      Everything's work fine, except to the Iceweasel/firefox custom protocols!



      I added komodo.protocol in my ~/.kde/share/services with:



      [Protocol]
      exec=python /path/to/my/script.py "%u"
      protocol=komodo
      input=none
      output=none
      helper=true
      listing=
      reading=false
      writing=false
      makedir=false
      deleting=false


      This works for chrom(e|ium), but not for firefox.



      I've read about firefox should use the gnome configs even under Kde, so I tried:



      gconftool-2 -s /desktop/gnome/url-handlers/komodo/enabled --type Boolean true
      gconftool-2 -s /desktop/gnome/url-handlers/komodo/command 'python /path/to/my/script.py %s' --type String


      that used to work when I was on ubuntu, but it doesn't on kde.



      Any idea?



      EDIT



      An example link: komodo:/var/www/app/0/Modules/Controller/Node/Controller_Node.class.php:1202



      And if I run the command komodo /var/www/app/0/Modules/Controller/Node/Controller_Node.class.php:1202 from the terminal it works correctly; my python script simply check few things and then runs this command - but with firefox/iceweasel it never gets triggered.







      debian kde firefox iceweasel protocols






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 21 '16 at 11:09









      Jeff Schaller

      37.4k1052121




      37.4k1052121










      asked Sep 7 '12 at 15:08









      Strae

      7819




      7819






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          You may try to edit Firefox configuration via about:config:





          • network.protocol-handler.expose.komodo: true (This protocol should be handled either by the browser or by an external application)


          • network.protocol-handler.external.komodo: true (This protocol should be handled by an external application)


          • network.protocol-handler.app.komodo: python /path/to/my/script.py (Path to a program to handle the request)






          share|improve this answer





















          • Tryed, still get the error "Address can not be interpreted, Unable to open this address: the protocol (komodo) is not associated with any program."
            – Strae
            Sep 10 '12 at 15:05










          • Can you give us an example of the link you click on? Also, clicking on the link should open the "Launch application" window with "This link should be opened with an application - Send to". This should be the easiest way to associate a protocol with a custom application.
            – Francesco Turco
            Sep 11 '12 at 10:18










          • I added an example. Actually, I do not want the "Launch Application", i use this protocol in my error_handlers scripts to automatically open the right file in the right position where the error occour.
            – Strae
            Sep 11 '12 at 10:51











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "106"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f47485%2fdebian-kde-iceweasel-firefox-setting-custom-protocols-handlers%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote













          You may try to edit Firefox configuration via about:config:





          • network.protocol-handler.expose.komodo: true (This protocol should be handled either by the browser or by an external application)


          • network.protocol-handler.external.komodo: true (This protocol should be handled by an external application)


          • network.protocol-handler.app.komodo: python /path/to/my/script.py (Path to a program to handle the request)






          share|improve this answer





















          • Tryed, still get the error "Address can not be interpreted, Unable to open this address: the protocol (komodo) is not associated with any program."
            – Strae
            Sep 10 '12 at 15:05










          • Can you give us an example of the link you click on? Also, clicking on the link should open the "Launch application" window with "This link should be opened with an application - Send to". This should be the easiest way to associate a protocol with a custom application.
            – Francesco Turco
            Sep 11 '12 at 10:18










          • I added an example. Actually, I do not want the "Launch Application", i use this protocol in my error_handlers scripts to automatically open the right file in the right position where the error occour.
            – Strae
            Sep 11 '12 at 10:51















          up vote
          0
          down vote













          You may try to edit Firefox configuration via about:config:





          • network.protocol-handler.expose.komodo: true (This protocol should be handled either by the browser or by an external application)


          • network.protocol-handler.external.komodo: true (This protocol should be handled by an external application)


          • network.protocol-handler.app.komodo: python /path/to/my/script.py (Path to a program to handle the request)






          share|improve this answer





















          • Tryed, still get the error "Address can not be interpreted, Unable to open this address: the protocol (komodo) is not associated with any program."
            – Strae
            Sep 10 '12 at 15:05










          • Can you give us an example of the link you click on? Also, clicking on the link should open the "Launch application" window with "This link should be opened with an application - Send to". This should be the easiest way to associate a protocol with a custom application.
            – Francesco Turco
            Sep 11 '12 at 10:18










          • I added an example. Actually, I do not want the "Launch Application", i use this protocol in my error_handlers scripts to automatically open the right file in the right position where the error occour.
            – Strae
            Sep 11 '12 at 10:51













          up vote
          0
          down vote










          up vote
          0
          down vote









          You may try to edit Firefox configuration via about:config:





          • network.protocol-handler.expose.komodo: true (This protocol should be handled either by the browser or by an external application)


          • network.protocol-handler.external.komodo: true (This protocol should be handled by an external application)


          • network.protocol-handler.app.komodo: python /path/to/my/script.py (Path to a program to handle the request)






          share|improve this answer












          You may try to edit Firefox configuration via about:config:





          • network.protocol-handler.expose.komodo: true (This protocol should be handled either by the browser or by an external application)


          • network.protocol-handler.external.komodo: true (This protocol should be handled by an external application)


          • network.protocol-handler.app.komodo: python /path/to/my/script.py (Path to a program to handle the request)







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Sep 10 '12 at 9:15









          Francesco Turco

          1,32331530




          1,32331530












          • Tryed, still get the error "Address can not be interpreted, Unable to open this address: the protocol (komodo) is not associated with any program."
            – Strae
            Sep 10 '12 at 15:05










          • Can you give us an example of the link you click on? Also, clicking on the link should open the "Launch application" window with "This link should be opened with an application - Send to". This should be the easiest way to associate a protocol with a custom application.
            – Francesco Turco
            Sep 11 '12 at 10:18










          • I added an example. Actually, I do not want the "Launch Application", i use this protocol in my error_handlers scripts to automatically open the right file in the right position where the error occour.
            – Strae
            Sep 11 '12 at 10:51


















          • Tryed, still get the error "Address can not be interpreted, Unable to open this address: the protocol (komodo) is not associated with any program."
            – Strae
            Sep 10 '12 at 15:05










          • Can you give us an example of the link you click on? Also, clicking on the link should open the "Launch application" window with "This link should be opened with an application - Send to". This should be the easiest way to associate a protocol with a custom application.
            – Francesco Turco
            Sep 11 '12 at 10:18










          • I added an example. Actually, I do not want the "Launch Application", i use this protocol in my error_handlers scripts to automatically open the right file in the right position where the error occour.
            – Strae
            Sep 11 '12 at 10:51
















          Tryed, still get the error "Address can not be interpreted, Unable to open this address: the protocol (komodo) is not associated with any program."
          – Strae
          Sep 10 '12 at 15:05




          Tryed, still get the error "Address can not be interpreted, Unable to open this address: the protocol (komodo) is not associated with any program."
          – Strae
          Sep 10 '12 at 15:05












          Can you give us an example of the link you click on? Also, clicking on the link should open the "Launch application" window with "This link should be opened with an application - Send to". This should be the easiest way to associate a protocol with a custom application.
          – Francesco Turco
          Sep 11 '12 at 10:18




          Can you give us an example of the link you click on? Also, clicking on the link should open the "Launch application" window with "This link should be opened with an application - Send to". This should be the easiest way to associate a protocol with a custom application.
          – Francesco Turco
          Sep 11 '12 at 10:18












          I added an example. Actually, I do not want the "Launch Application", i use this protocol in my error_handlers scripts to automatically open the right file in the right position where the error occour.
          – Strae
          Sep 11 '12 at 10:51




          I added an example. Actually, I do not want the "Launch Application", i use this protocol in my error_handlers scripts to automatically open the right file in the right position where the error occour.
          – Strae
          Sep 11 '12 at 10:51


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f47485%2fdebian-kde-iceweasel-firefox-setting-custom-protocols-handlers%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Entries order in /etc/network/interfaces

          新発田市

          Grub takes very long (several minutes) to open Menu (in Multi-Boot-System)