Linux command
gvfs-mime 命令
文本
Copy it and replace filenames, paths, or keywords as needed.
命令示例
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.