desktop-file-install(1)


NAME

   desktop-file-install,  desktop-file-edit  - Installation and edition of
   desktop files

SYNOPSIS

   desktop-file-install      [--dir=DIR]       [-m       MODE|--mode=MODE]
   [--vendor=VENDOR]    [--delete-original]    [--rebuild-mime-info-cache]
   [EDITOPTION]... FILE...

   desktop-file-edit [EDITOPTION]... FILE

DESCRIPTION

   The desktop-file-install program is a tool to install,  and  optionally
   edit,  desktop files. The desktop-file-edit program is a tool to edit a
   desktop file. They are mostly useful for developers and packagers.

   Various options are available to  edit  the  desktop  files.  The  edit
   options  can  be  specified more than once and will be processed in the
   same order as the options passed to the program.

   desktop-file-install and desktop-file-edit will always try to  validate
   the  resulting  desktop  file.  A failure to validate might lead to the
   abortion of the installation of the desktop files.

   The list of registered categories and desktop environments  is  defined
   in                the                Menu                specification:
   http://freedesktop.org/wiki/Specifications/menu-spec.

OPTIONS

   The following options are supported:

   --dir=DIR
          Install desktop files to the DIR directory.

   -m, --mode=MODE
          Set the permissions of the destination files to MODE.

   --vendor=VENDOR
          Add a vendor prefix to the desktop files. If a file already  has
          this  prefix,  nothing  happens;  else,  the  file will be named
          VENDOR-FILE. For example: if VENDOR is freedesktop.org and  FILE
          is    specification.desktop,    the    result   file   will   be
          freedesktop.org-specification.desktop.

   --delete-original
          Delete the source desktop files, leaving only the target  files.
          Effectively "renames" the desktop files.

   --rebuild-mime-info-cache
          Rebuild the MIME types application database after installing the
          desktop files. See  update-desktop-database(1)  for  information
          about this database.

EDIT OPTIONS

   The following edit options are supported:

   --set-key=KEY
          Set  the  KEY  key  to  the value passed to the next --set-value
          option. A matching --set-value option is mandatory.

   --set-value=VALUE
          Set the key specified with  the  previous  --set-key  option  to
          VALUE.  A matching --set-key option is mandatory.

   --set-name=NAME
          Set  the  name (key Name) to NAME. If a name was already set, it
          will be overridden.  Localizations  of  the  old  name  will  be
          removed.

   --copy-name-to-generic-name
          Copy the value of the Name key to the GenericName key. Note that
          a desktop file requires a Name key to be valid, so  this  option
          will always have an effect.

   --set-generic-name=GENERIC-NAME
          Set  the  generic  name  (key GenericName) to GENERIC-NAME. If a
          generic  name  was  already  set,   it   will   be   overridden.
          Localizations of the old generic name will be removed.

   --copy-generic-name-to-name
          Copy  the  value  of the GenericName key to the Name key, if the
          GenericName key is present.

   --set-comment=COMMENT
          Set the comment (key Comment)  to  COMMENT.  If  a  comment  was
          already  set,  it  will  be overridden. Localizations of the old
          comment will be removed.

   --set-icon=ICON
          Set the icon (key Icon) to ICON. If an icon was already set,  it
          will  be  overridden.  Localizations  of  the  old  icon will be
          removed.

   --add-category=CATEGORY
          Add CATEGORY to the list  of  categories  (key  Categories).  If
          CATEGORY  was  already  present in the list, this operation is a
          no-op. A non-registered category should be prefixed with X-.

   --remove-category=CATEGORY
          Remove CATEGORY from the list of categories (key Categories). If
          CATEGORY was not present in the list, this operation is a no-op.

   --add-mime-type=MIME-TYPE
          Add MIME-TYPE to the list of MIME types (key MimeType). If MIME-
          TYPE was already present in the list, this operation is a no-op.

   --remove-mime-type=MIME-TYPE
          Remove MIME-TYPE from the list of MIME types (key MimeType).  If
          MIME-TYPE  was  not present in the list, this operation is a no-
          op.

   --add-only-show-in=ENVIRONMENT
          Add ENVIRONMENT to the list of desktop  environments  where  the
          desktop   files   should   be  displayed  (key  OnlyShowIn).  If
          ENVIRONMENT was already present in the list, this operation is a
          no-op.  A  non-registered desktop environment should be prefixed
          with X-. Note that an empty OnlyShowIn key  in  a  desktop  file
          means   that   the   desktop  file  will  be  displayed  in  all
          environments.

   --remove-only-show-in=ENVIRONMENT
          Remove ENVIRONMENT from the list of desktop  environments  where
          the  desktop  files  should  be  displayed  (key OnlyShowIn). If
          ENVIRONMENT was not present in the list, this operation is a no-
          op.

   --add-not-show-in=ENVIRONMENT
          Add  ENVIRONMENT  to  the list of desktop environments where the
          desktop files  should  not  be  displayed  (key  NotShowIn).  If
          ENVIRONMENT was already present in the list, this operation is a
          no-op. A non-registered desktop environment should  be  prefixed
          with  X-.  Note  that  an  empty NotShowIn key in a desktop file
          means  that  the  desktop  file  will  be   displayed   in   all
          environments.

   --remove-not-show-in=ENVIRONMENT
          Remove  ENVIRONMENT  from the list of desktop environments where
          the desktop files should not be displayed  (key  NotShowIn).  If
          ENVIRONMENT was not present in the list, this operation is a no-
          op.

   --remove-key=KEY
          Remove the KEY key from the desktop files, if present.

ENVIRONMENT

   Some environment variables change the behavior of desktop-file-install:

   DESKTOP_FILE_VENDOR

          This variable can be used as  an  alternative  to  the  --vendor
          option.  If  the  --vendor  option  is  used,  this  environment
          variable will be ignored.

   DESKTOP_FILE_INSTALL_DIR

          This variable can be used as an alternative to the --dir option.
          If  the  --dir option is used, this environment variable will be
          ignored.

   RPM_BUILD_ROOT

          This variable is set when building RPM packages.  If  the  --dir
          option and the DESKTOP_FILE_INSTALL_DIR environment variable are
          not used, it will automatically  be  prepended  to  the  default
          install  directory  to  install  the desktop files appropriately
          when building packages.

BUGS

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

SEE ALSO

   desktop-file-validate(1) update-desktop-database(1)

                            FREEDESKTOP.ORG        DESKTOP-FILE-INSTALL(1)


More Linux Commands

manpages/setcontext.2.html
setcontext(2) - get or set the user context - Linux man page
setcontext.2 - In a System V-like environment, one has the two types mcontext_t and ucontext_t defined in <ucontext.h> and the four functions getcontext(), setc

manpages/splashy_config.1.html
splashy_config(1) - a user-mode, POSIX and LSB compliant, bo
Splashy displays an image and a progress bar at boot time. splashy_config is used to change Splashy configuration options. OPTIONS -h, --help Print helps and ex

manpages/perltie.1.html
perltie(1) - how to hide an object class in a simple variabl
Prior to release 5.0 of Perl, a programmer could use dbmopen() to connect an on-disk database in the standard Unix dbm(3x) format magically to a %HASH in their

manpages/vscanf.3.html
vscanf(3) - input format conversion - Linux manual page.....
The scanf() family of functions scans input according to format as described below. This format may contain conversion specifications; the results from such con

manpages/systemd-loginctl.1.html
systemd-loginctl(1) - Control the systemd login manager.....
loginctl may be used to introspect and control the state of the systemd(1) login manager systemd-logind.service(8). OPTIONS The following options are understood

manpages/gnu_dev_makedev.3.html
gnu_dev_makedev(3) - manage a device number - Linux man page
A device ID consists of two parts: a major ID, identifying the class of the device, and a minor ID, identifying a specific instance of a device in that class. A

manpages/noecho.3ncurses.html
noecho(3ncurses) - curses input options - Linux manual page
Normally, the tty driver buffers typed characters until a newline or carriage return is typed. The cbreak routine disables line buffering and erase/kill charact

manpages/pcre_exec.3.html
pcre_exec(3) - Perl-compatible regular expressions (ManPage)
This function matches a compiled regular expression against a given subject string, using a matching algorithm that is similar to Perls. It returns offsets to c

manpages/git-merge-index.1.html
git-merge-index(1) - Run a merge for files needing merging
This looks up the <file>(s) in the index and, if there are any merge entries, passes the SHA-1 hash for those files as arguments 1, 2, 3 (empty argument if no f

manpages/libblkid.3.html
libblkid(3) - block device identification library (ManPage)
The libblkid library is used to identify block devices (disks) as to their content (e.g. filesystem type) as well as extracting additional information such as f

manpages/Encode::Supported.3pm.html
Encode::Supported(3pm) - Encodings supported by Encode......
Encoding Names Encoding names are case insensitive. White space in names is ignored. In addition, an encoding may have aliases. Each encoding has one canonical

manpages/reset_shell_mode_sp.3ncurses.html
reset_shell_mode_sp(3ncurses) - curses screen-pointer extens
This implementation can be configured to provide a set of functions which improve the ability to manage multiple screens. This feature can be added to any of th





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