update-desktop-database(1)


NAME

   update-desktop-database - Build cache database of MIME types handled by
   desktop files

SYNOPSIS

   update-desktop-database [-q|--quiet] [-v|--verbose] [DIRECTORY...]

DESCRIPTION

   The update-desktop-database program is a tool to build a cache database
   of the MIME types handled by desktop files.

   The  cache database contains the list of MIME types that can be handled
   by desktop files, as well as, for each MIME type,  a  list  of  desktop
   files that can handle this MIME type. This cache database ease the work
   of applications that need to  find  an  application  that  can  open  a
   document  of  a specific MIME type: those applications will not have to
   parse all the desktop files existing on the  system,  and  can  instead
   parse this cache database.

   If  no  DIRECTORY is specified as argument, the desktop files that will
   be processed are the ones installed in $XDG_DATA_DIRS/applications.

   If both the --quiet and --verbose options are used, then --verbose will
   be ignored.

OPTIONS

   The following options are supported:

   -q, --quiet
          Do  not  display  any  information about processing and updating
          progress.

   -v, --verbose
          Display more information about processing and updating progress.

NOTES

   If an invalid MIME type is met, it will be ignored and the creation  of
   the cache database will continue.

   The format of the cache database is a simple desktop entry format, with
   a MIME Cache group, containing one key per MIME type. The key  name  is
   the  MIME  type, and the key value is the list of desktop file that can
   handle this MIME type.

   The  order  of  the  desktop  files  found  for  a  MIME  type  is  not
   significant.    Therefore,  an  external  mechanism  must  be  used  to
   determine what is the preferred desktop file for a MIME type.

EXAMPLE

   Here is a simple example of a cache database:

           [MIME Cache]
           application/x-shellscript=gedit.desktop;
           text/plain=gedit.desktop;gvim.desktop;
           video/webm=totem.desktop;

   This  cache  database  is  created  with  three  desktop  files,   each
   containing a MimeType key:

           gedit.desktop: MimeType=text/plain;application/x-shellscript;
           gvim.desktop: MimeType=text/plain;
           totem.desktop: MimeType=video/webm;

FILES

   $XDG_DATA_DIRS/applications/mimeinfo.cache

          This  file  is  the  cache  database  created by update-desktop-
          database.

BUGS

   If you find bugs in the update-desktop-database program, please  report
   these on https://bugs.freedesktop.org.

                            FREEDESKTOP.ORG     UPDATE-DESKTOP-DATABASE(1)


More Linux Commands

manpages/XPeekIfEvent.3.html
XPeekIfEvent(3) - check the event queue with a predicate pro
The XIfEvent function completes only when the specified predicate procedure returns True for an event, which indicates an event in the queue matches. XIfEvent f

manpages/git-prune.1.html
git-prune(1) - Prune all unreachable objects from the object
Note In most cases, users should run git gc, which calls git prune. See the section NOTES, below. This runs git fsck --unreachable using all the refs available

manpages/IO::Scalar.3pm.html
IO::Scalar(3pm) - IO:: interface for reading/writing a scala
This class is part of the IO::Stringy distribution; see IO::Stringy for change log and general information. The IO::Scalar class implements objects which behave

manpages/mq_timedreceive.3.html
mq_timedreceive(3) - receive a message from a message queue
mq_receive() removes the oldest message with the highest priority from the message queue referred to by the descriptor mqdes, and places it in the buffer pointe

manpages/systemd.time.7.html
systemd.time(7) Time and date specifications (Man Page).....
In systemd, timestamps, time spans, and calendar events are displayed and may be specified in closely related syntaxes. DISPLAYING TIME SPANS Time spans refer t

manpages/Tcl_GetRange.3.html
Tcl_GetRange(3) - manipulate Tcl objects as strings.........
The procedures described in this manual entry allow Tcl objects to be manipulated as string values. They use the internal representation of the object to store

manpages/Tcl_DStringFree.3.html
Tcl_DStringFree(3) - manipulate dynamic strings (Man Page)
Dynamic strings provide a mechanism for building up arbitrarily long strings by gradually appending information. If the dynamic string is short then there will

manpages/ddate.1.html
ddate(1) - convert Gregorian dates to Discordian dates......
ddate prints the date in Discordian date format. If called with no arguments, ddate will get the current system date, convert this to the Discordian date format

manpages/lua.1.html
lua(1) Lua interpreter (Commands - Linux manual page).......
lua is the standalone Lua interpreter. It loads and executes Lua programs, either in textual source form or in precompiled binary form. (Precompiled binaries ar

manpages/errorInfo.n.html
errorInfo(n) Variables used by Tcl _________________________
The following global variables are created and managed automatically by the Tcl library. Except where noted below, these variables should normally be treated as

manpages/CIRCLEQ_INSERT_TAIL.3.html
CIRCLEQ_INSERT_TAIL(3) implementations of lists, tail queues
These macros define and operate on three types of data structures: lists, tail queues, and circular queues. All three structures support the following functiona

manpages/ipppstats.8.html
ipppstats.8 (Manual - Linux man page)......................
pppstats prints PPP-related statistics. The -v flag causes pppstats to display additional statistics, such as the number of packets tossed (that is, which the V





We can't live, work or learn in freedom unless the software we use is free.