MIME 유형 바인딩을 추가하는 방법은 무엇입니까?

MIME 유형 바인딩을 추가하는 방법은 무엇입니까?

"xdg-open"을 시작할 때 오류 메시지가 나타납니다. No applications found for mimetype: inode/mount-point

"돌고래" 바인딩을 어떻게 추가해야 하나요?

답변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 시스템 설정을 열고 해당 파일 유형을 지정하십시오.

관련 정보