So I saw that when I access a repository on github.com on a windows machine in Firefox or Chrome, it has a button called 'Clone in Desktop', which is a link of this kind:
github-windows://OpenReopo/https://....
Now if I have the github windows client installed on my machine, it opens the link in that client when I confirm it once. I can also see that when github is installed, there is also an entry for a file type called github-windows in my Firefox's Tools->Options->Applications Tab, which is not there on a clean machine Firefox install.
I tried creating a dummy link like myapp://something/...
on a webpage, but of course it doesn't work because Firefox does not recognize it as a valid file type (and there's no app registered to use it).
So my question is, how can I achieve what github has done here? I'm ok with writing an installable application (like a C#/C++ program) if I can open links directly in it from Firefox or Chrome.
I tried searching but couldn't find much info about this.
EDIT: I don't think this is a duplicate of Custom protocol handler in chrome , because it talks about navigator.registerProtocolHandler , which is only about web-protocols (for web applications), while what I want here is to open the link in a desktop application.
Thanks!