Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When developing an application for a Windows system, there is a registry entry you can make on the client machine that sets a 'protocol handler' in the system. In the same way that mailto links work you can have it launch your application when a specific url (ie. myapp:) is put into a web browser address bar.

This registry entry seems to work for the common browsers and does not require specific setup for each possible browser.

I have in the past, set a custom protocol handler in Firefox on Linux however... I was wondering if there was a way to do it system wide so that it would work the same for Chromium, etc as well?

share|improve this question
up vote 3 down vote accepted

Not system-wide. But the Gnome registry thingy has entries for that. Use gconf-editor and edit sub entries for /desktop/gnome/url-handlers. See also here

KDE obviously has a different URI handler database. There is also xdg-open worth looking into. But I'm not sure if it uses a standardized handler database, or if is working on it. Sparse docs.

Personally I wish they would just use the xdg-mime (and application) database for that. There are pseudo uri/* types in it anyway. And it was somewhat more systematic if you could define handler applications and preference lists for them like with regular MIME types. </rant>

share|improve this answer
"Not system-wide. But the Gnome registry thingy has entries for that." Does that mean Yes and No at the same time? – Sam Nov 8 '10 at 11:18
@Sam I suspect it would affect Gnome applications only and the KDE half of your applications won't honor it. – mario Nov 8 '10 at 12:23

With GNOME 3.0 and Ubuntu 11.10, things changed compared to the accepted answer to this question.

You can find more details at "Creating custom URL handlers in Ubuntu 11.04, 11.10, GNOME 3.0".

share|improve this answer

Your Answer


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.