Register file extensions / mime types in Linux

后端 未结 4 953
长发绾君心
长发绾君心 2020-11-27 10:54

I\'m developing a Linux application that has its own file format. I want my app to open when you double-click on those files.

How can I register a file extension and

4条回答
  •  情书的邮戳
    2020-11-27 11:44

    There are two parts to this. You need to register a new file type and then create a desktop entry for your application. The desktop entry associates your application with your new mime type.

    I thought that both Gnome and KDE (maybe only 4+?) used the freedesktop shared mime info spec, but I may well be wrong.

提交回复
热议问题