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

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid