add new chinese translations
This commit is contained in:
20
pages.zh/linux/xdg-mime.md
Normal file
20
pages.zh/linux/xdg-mime.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# xdg-mime
|
||||
|
||||
> 根据 XDG 标准查询和管理 MIME 类型。
|
||||
> 更多信息:<https://portland.freedesktop.org/doc/xdg-mime.html>。
|
||||
|
||||
- 显示文件的 MIME 类型:
|
||||
|
||||
`xdg-mime query filetype {{path/to/file}}`
|
||||
|
||||
- 显示打开 PNG 文件的默认应用程序:
|
||||
|
||||
`xdg-mime query default {{image/png}}`
|
||||
|
||||
- 显示打开特定文件的默认应用程序:
|
||||
|
||||
`xdg-mime query default $(xdg-mime query filetype {{path/to/file}})`
|
||||
|
||||
- 将 imv 设置为打开 PNG 和 JPEG 图像的默认应用程序:
|
||||
|
||||
`xdg-mime default {{imv.desktop}} {{image/png}} {{image/jpeg}}`
|
Reference in New Issue
Block a user