title: setting protocol handler by x-scheme-handler in centos, opensuse
body: <p>My requirement is to run custom protocol handler using firefox in linux systems.</p>
  
  <p>I have successfully added protocol handler in Ubuntu by creating myapp.desktop file in /usr/share/applications. The content is something like this.</p>
  
  <pre><code>[Desktop Entry]
  Name=myapp
  Comment= My Custom protocol handler
  Exec=/path/to/my/application %U
  Icon=myicon
  Terminal=0
  Type=Application
  X-MultipleArgs=True
  MimeType=x-scheme-handler/myapp
  Encoding=UTF-8
  Categories=Network;Application;
  </code></pre>
  
  <p>After that I run update-desktop-database. All set and I was able to type myapp:// in firefox browser of Ubuntu or in Fedora and myapp got invoked.</p>
  
  <p>While the same procedure does not work in Centos or Opensuse.
  I tried the following things in centos and opensuse but it did not work.</p>
  
  <pre><code>gconftool-2 -t string -s /desktop/gnome/url-handlers/myapp/command "/path/to/my/app %U"
  gconftool-2 -s /desktop/gnome/url-handlers/myapp/needs_terminal false -t bool
  gconftool-2 -t bool -s /desktop/gnome/url-handlers/myapp/enabled true
  </code></pre>
  
  <p>Please help in making the protocol handler work in centos and opensuse.
  I am using centos-6.2 and opensuse 11.2</p>
  
  <p>Thanks in advance.</p>