LinuxCommandLibrary

gvfs-mime

manages MIME type associations in GNOME

TLDR

Show default handler

$ gvfs-mime --query [text/plain]
copy
Set default handler
$ gvfs-mime --set [text/html] [firefox.desktop]
copy
Query image handler
$ gvfs-mime --query [image/jpeg]
copy

SYNOPSIS

gvfs-mime [options] mimetype [handler]

DESCRIPTION

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.

PARAMETERS

MIMETYPE

MIME type to query or set.
HANDLER
Desktop file for handler.
--query
Query default handler.
--set
Set default handler.
--help
Display help information.

CAVEATS

Deprecated in favor of gio mime. GNOME specific. Uses desktop file names.

HISTORY

gvfs-mime was developed as part of GVFS for GNOME, now largely replaced by the gio command.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community