启动“xdg-open”时收到错误消息,
No applications found for mimetype: inode/mount-point
我应该如何添加“dolphin”的绑定?
答案1
我浏览了一下xdg-open
源代码,发现它用于xdg-mime
确定类型。man xdg-mime
显示了一个default
设置要使用的应用程序的选项:
xdg-mime default application mimetype(s)
...
default
Ask the desktop environment to make application the default
application for opening files of type mimetype. An application can
be made the default for several file types by specifying multiple
mimetypes.
application is the desktop file id of the application and has the
form vendor-name.desktop application must already be installed in
the desktop menu before it can be made the default handler. The
aplication's desktop file must list support for all the MIME types
that it wishes to be the default handler for.
有关此内容的更多信息,请参阅相关手册页。
答案2
我不是 100% 确定,但我认为 xdg-open 依赖于您在 DE 配置中的“文件类型”中设置的内容。我猜您使用的是 KDE,因此打开 KDE 系统设置并指定该文件类型。