gvfs-mime (1)
Leading comments
Title: gvfs-mime Author: Ondrej Holy <oholy@redhat.com> Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> Date: 09/14/2017 Manual: User Commands Source: gvfs Language: English
NAME
gvfs-mime - Get or set mime handlersSYNOPSIS
-
gvfs-mime --query {MIMETYPE}
- gvfs-mime --set {MIMETYPE} {HANDLER}
DESCRIPTION
gvfs-mime
Gvfs obtains this information from the shared-mime-info database. The default handler is stored per-user, in the file $XDG_DATA_HOME/applications/mimeapps.list.
MIMETYPE should be a mime-type such as text/plain or application/mbox. HANDLER should be the name of an existing desktop file such as gedit.desktop.
OPTIONS
The following options are understood:
-h, --help
- Prints a short help text and exits.
--version
- Shows the version number and exits.
--query
- Query the handler for MIMETYPE.
--set
- Set the default handler for MIMETYPE to HANDLER.
EXIT STATUS
On success 0 is returned, a non-zero failure code otherwise.
SEE ALSO
gvfs-open(1), m[blue]Shared MIME-Info specificationm[]
[1]
NOTES
- 1.
-
Shared MIME-Info specification