Linux中的自定义协议? [英] Custom protocol in linux?
问题描述
我正在尝试将我的业余爱好项目之一移植到linux.最好使用Mono,因为它是用C#编写的.但是我也在研究Python.
I am attempting to port one of my hobby project to linux. Preferrably to Mono since it is written in C#. But I am looking into Python as well.
应用程序的功能之一是它需要与自定义协议相关联,因此,当用户单击应用程序网站上的链接时,将调用该应用程序:
One of the feature of the application is that it needs to associate with a custom protocol so the application is invoked when the user clicks links like this on the app's website:
myapp://module/action
A custom protocol like this, this and this.
在linux/unix系统中怎么做?是否可以像Windows中那样关联系统范围的处理程序?还是需要依赖于浏览器?
How can that be done in linux/unix systems? Can I associate a system-wide handler like in Windows? or does it need to be browser-dependent?
在Google上找不到任何内容.而且我对Linux编程一无所知.
Can't find anything on Google. And I am utterly clueless at linux programming.
我需要一些指针.谢谢!
I need some pointers. Thanks!
推荐答案
在理想情况下,此类事情由桌面环境(KDE,GNOME,XFCE)处理,并且Firefox尊重这些设置-应该至少在Ubuntu,Fedora和OpenSUSE上这样做. YMMV:
In the ideal situation, this sort of thing is handled by the desktop environment (KDE, GNOME, XFCE), and Firefox respects those settings---it should do so on Ubuntu, Fedora, and OpenSUSE, at least. YMMV:
这篇关于Linux中的自定义协议?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!