开发者

How to make program the default "handler" of a certain protocol?

I have a progra开发者_如何学Pythonm 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.


For windows you can make use of this.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜