答案1
您可以为当前用户添加 MIME 类型关联$/.local/share/application/mimeapps.list
。示例代码片段如下,
[Added Associations]
application/excel=planmaker-free18.desktop;
application/mspowerpoint=presentations-free18.desktop;
application/msword=textmaker-free18.desktop;
application/ppt=presentations-free18.desktop;
[Default Applications]
text/html=google-chrome.desktop
text/x-arduino=arduino-arduinoide.desktop
您必须先将新关联添加到[Added Associations]
部分,然后将其添加到[Default Applications]
部分以设为默认。对于您的类型,请添加application/x-sharedlib=some-application.desktop
两个部分。然后保存文件并尝试打开。您可能想重新启动鹦鹉螺。
如果要全局编辑,请编辑文件/usr/share/application/default.list