Take the 2-minute tour ×

I have a program that I would like to be launched whenever a url with the protocol "sample://" is clicked/launched. For example, a user clicks on a link in IE/Firefox with the following href: sample://test.txt. My program should then be invoked with the url as an argument. I would like a solution for Windows and linux if possible, though I realise they will be different.

share|improve this question

2 Answers 2

up vote 0 down vote accepted

For windows you can make use of this.

share|improve this answer

For Linux, it will depend a lot on the DE you are using. GNOME/KDE has different mechanisms for the same.

share|improve this answer
My program uses GTK+ anyway, so what would that look like in Gnome? –  Nathan Osman Jan 11 '10 at 19:30

Your Answer


