← 返回命令列表

Linux command

gvfs-mime 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Show default handler

gvfs-mime --query [text/plain]

Set default handler

gvfs-mime --set [text/html] [firefox.desktop]

Query image handler

gvfs-mime --query [image/jpeg]

说明

gvfs-mime manages MIME type associations in GNOME. It queries and sets default applications for opening different file types. The tool modifies the user's MIME database to associate applications with content types. Changes affect how files are opened in GNOME.

参数

--query
Query default handler.
--set
Set default handler.
--help
Display help information.

FAQ

What is the gvfs-mime command used for?

gvfs-mime manages MIME type associations in GNOME. It queries and sets default applications for opening different file types. The tool modifies the user's MIME database to associate applications with content types. Changes affect how files are opened in GNOME.

How do I run a basic gvfs-mime example?

Run `gvfs-mime --query [text/plain]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --query do in gvfs-mime?

Query default handler.