15.5. 모든 사용자에 대해 기본 등록된 애플리케이션 덮어쓰기
시스템을 관리하면 요구 사항에 따라 구성을 업데이트할 수 있습니다. 시스템 관리자의 구성이 기본 패키지 구성보다 우선합니다. 각각 내에서 데스크탑별 구성이 데스크탑 환경을 지정하지 않는 구성보다 우선합니다.
절차
/usr/share/applications/mimeapps.list파일을 참조하여 기본 등록된 애플리케이션을 변경할 MIME 유형을 확인합니다. 예를 들어 다음mimeapps.list파일은text/html및application/xhtml+xmlMIME 유형의 기본 등록된 애플리케이션을 지정합니다.[Default Applications] text/html=firefox.desktop application/xhtml+xml=firefox.desktop
[Default Applications] text/html=firefox.desktop application/xhtml+xml=firefox.desktopCopy to Clipboard Copied! Toggle word wrap Toggle overflow 위의 예에서는 해당
.desktop파일(firefox.desktop)을 지정하여 기본 애플리케이션(M#159illa Firefox)을 지정합니다. 다른 애플리케이션의.desktop파일은/usr/share/applications/디렉토리에서 찾을 수 있습니다./etc/xdg/mimeapps.list파일을 만들고 이 파일에서 MIME 유형 및 해당 기본 등록된 애플리케이션을 지정합니다.[Default Applications] text/html=myapplication1.desktop application/xhtml+xml=myapplication2.desktop
[Default Applications] text/html=myapplication1.desktop application/xhtml+xml=myapplication2.desktopCopy to Clipboard Copied! Toggle word wrap Toggle overflow 위의 예제에서는
text/htmlMIME 유형의 기본 등록 애플리케이션을myapplication1.desktop및application/xhtml+xmlMIME 유형을myapplication2.desktop으로 설정합니다.
검증
-
이러한 설정이 올바르게 작동하려면
myapplication1.desktop및myapplication2.desktop파일이/usr/share/applications/디렉터리에 배치됩니다. 기본 등록된 애플리케이션이 올바르게 설정되었는지 확인합니다.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow