我在哪里找到mimeapps.list?


2

我正在使用此链接在Ubuntu 14.04上安装Qt 5 。

但是,我坚持创建Qt-Creator.desktop文件。文档指示“打开文件mimeapps.list并检查是否存在以下行”。

application/vnd.nokia.qt.qmakeprofile=qtcreator.desktop

但是我在应用程序文件夹下找不到mimeapps.list

因此,在哪里找到mimeapps.list

请帮我。

提前致谢。

Answers:


2

它应该在以下目录中:

/usr/share/applications/mimeapps.list

如果它不存在,则可以创建它,并将该行放入此文件中:

sudo nano /usr/share/applications/mimeapps.list

您也可以在主目录中创建此文件:

nano ~/.local/share/applications/mimeapps.list

并将此行放入该文件:

application/vnd.nokia.qt.qmakeprofile=qtcreator.desktop

例如,我的mimeapps.list文件内容是:

$ cat /usr/share/applications/mimeapps.list
[Default Applications]
application/wps-office.et=/usr/share//applications/wps-office-et.desktop
application/wps-office.ett=/usr/share//applications/wps-office-et.desktop
application/wps-office.xls=/usr/share//applications/wps-office-et.desktop
application/wps-office.xlt=/usr/share//applications/wps-office-et.desktop
application/vnd.ms-excel=/usr/share//applications/wps-office-et.desktop
application/msexcel=/usr/share//applications/wps-office-et.desktop
application/wps-office.xlsx=/usr/share//applications/wps-office-et.desktop
application/wps-office.xltx=/usr/share//applications/wps-office-et.desktop
vnd.ms-excel.sheet.macroenabled.12=/usr/share//applications/wps-office-et.desktop
vnd.ms-excel.template.macroenabled.12=/usr/share//applications/wps-office-et.desktop
application/wps-office.dps=/usr/share//applications/wps-office-wpp.desktop
application/wps-office.dpt=/usr/share//applications/wps-office-wpp.desktop
application/wps-office.ppt=/usr/share//applications/wps-office-wpp.desktop
application/wps-office.pot=/usr/share//applications/wps-office-wpp.desktop
application/vnd.ms-powerpoint=/usr/share//applications/wps-office-wpp.desktop
application/vnd.mspowerpoint=/usr/share//applications/wps-office-wpp.desktop
application/powerpoint=/usr/share//applications/wps-office-wpp.desktop
application/wps-office.pptx=/usr/share//applications/wps-office-wpp.desktop
application/wps-office.potx=/usr/share//applications/wps-office-wpp.desktop
vnd.ms-powerpoint.presentation.macroenabled.12=/usr/share//applications/wps-office-wpp.desktop
vnd.ms-powerpoint.template.macroenabled.12=/usr/share//applications/wps-office-wpp.desktop
application/wps-office.wps=/usr/share//applications/wps-office-wps.desktop
application/wps-office.wpt=/usr/share//applications/wps-office-wps.desktop
application/wps-office.doc=/usr/share//applications/wps-office-wps.desktop
application/wps-office.dot=/usr/share//applications/wps-office-wps.desktop
application/vnd.ms-word=/usr/share//applications/wps-office-wps.desktop
application/msword=/usr/share//applications/wps-office-wps.desktop
application/msword-template=/usr/share//applications/wps-office-wps.desktop
wps-office-doc.png=/usr/share//applications/wps-office-wps.desktop
wps-office-dot.png=/usr/share//applications/wps-office-wps.desktop

有关MIME类型默认应用程序的更多信息,请查看Arch linux Wiki中的此链接

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.