gvfs-mime
Get or set mime handlers
see also :
gvfs-open
Synopsis
gvfs-mime
--query {MIMETYPE}
gvfs-mime
--set {MIMETYPE} {HANDER}
add an example, a script, a trick and tips
examples
no example yet ...
... Feel free to add your own example above to help other Linux-lovers !
description
gvfs-mime
can query information about applications that are registered
to handle a mime-type, or set the default handler for
a mime-type.
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.
--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.
notes
1.
Shared MIME-Info specification
http://freedesktop.org/wiki/Specifications/shared-mime-info-spec
gvfs mime
--set {MIMETYPE} {HANDER}
see also
gvfs-open ,
Shared MIME-Info
specification
[1]