Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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

Everythings 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 tryed:

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 doesnt 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 run this command - but with firefox/iceweasel it never get triggered.

share|improve this question

1 Answer 1

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

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

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.