LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

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

Part of the gvfs-bin command-line tools, deprecated in gvfs 1.31 (2016) and removed entirely in gvfs 1.38 (2018) in favor of the unified gio command (`gio mime`). Modern distributions no longer ship gvfs-mime. GNOME specific; uses .desktop file IDs as handlers.

HISTORY

gvfs-mime was part of GVFS's original gvfs-bin utilities, introduced for GNOME alongside GVFS in 2008 (GNOME 2.22). It has since been superseded by gio mime.

SEE ALSO

RESOURCES

Copied to clipboard
Kai