Purchase Linux CDs / DVDs / Flash Drives at OSDisc.com

Welcome to Our Community

While Linux.org has been around for a while, we recently changed management and had to purge most of the content (including users). If you signed up before April 23rd please sign up again. Thanks!

Custom URL Handler

Discussion in 'General Linux' started by Stalkerx777, May 12, 2012.

  1. Stalkerx777

    Stalkerx777 Guest

    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.

  2. Stalkerx777

    Stalkerx777 Guest

    UP! Any help?:confused:

Share This Page