Custom URL Handler



Hi guys. I need user to launch my app, when url link clicked. I'm trying to register custom url handler, and i found this:
To Registering a Protocol on Linux
[B]gconftool-2 -t string -s /desktop/gnome/url-handlers/foo/command 'foo "%s"'
gconftool-2 -s /desktop/gnome/url-handlers/foo/needs_terminal false -t bool
gconftool-2 -s /desktop/gnome/url-handlers/foo/enabled true -t bool[/B]

Then put the settings from your local gconf file into the global defaults in:

The problem is, i don't know how to put this from my local gconf file to /etc/gconf/gconf.xml.defaults/%gconf-tree.xml
Should i do it by hand? It's pretty complex xml file, is there easy way for doing this?
And one more question: According to gconf home page, /etc/gconf/gconf.xml.defaults/%gconf-tree.xml is system defaults. Why should i put there my url-handler strings, i thought it should look in users ~/.gconf folder first, but it didn't.
So i'm confused here, please help me to understand this. Right now, after executing above commands (gconftool-2 ...) firefox and chrome didn't handle my protocol....
Any help would be appreciated, thx.

$100 Digital Ocean Credit
Get a free VM to test out Linux! Hosting Donations
Consider making a donation

Staff online

Members online