linux 桌面快捷方法[Desktop Entry]

  以eclipse为例,最复杂的Desktop Entry:

  通俗内容:

  主要的参数及其感化以下表【起源:http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html】

  Key

  Description

  Value Type

  REQ?

  Type

  This specification defines 3 types of desktop entries: (type 1), (type 2) and (type 3). To allow the addition of new types in the future, implementations should ignore desktop entries with an unknown type.

  string

  YES

  Version of the Desktop Entry Specification that the desktop entry conforms with. Entries that confirm with this version of the specification should use. Note that the version field is not required to be present.

  string

  NO

  1-3

  Specific name of the application, for example "Mozilla".

  localestring

  YES

  1-3

  Generic name of the application, for example "Web Browser".

  localestring

  NO

  1-3

  means "this application exists, but don't display it in the menus". This can be useful to e.g. associate this application with MIME types, so that it gets launched from a file manager (or other apps), without having

  a menu entry for it (there are tons of good reasons for this, including e.g. the, or

  kind of stuff).

  boolean

  NO

  1-3

  Tooltip for the entry, for example "View sites on the Internet". The value should not be redundant with the values of and

  .

  localestring

  NO

  1-3

  Icon to display in file manager, menus, etc. If the name is an absolute path, the given file will be used. If the name is not an absolute path, the algorithm described in theIcon

  Theme Specification will be used to locate the icon.

  localestring

  NO

  1-3

  should have been called . It means the user deleted (at his level) something that was present (at an upper level, e.g. in the system dirs). It's strictly equivalent to the file not existing at all, as far as that user is concerned.

  This can also be used to "uninstall" existing files (e.g. due to a renaming) - by letting install a file with

  in it.

  boolean

  NO

  1-3

  ,

  A list of strings identifying the environments that should display/not display a given desktop entry. Only one of these keys, either or

  , may appear in a group (for possible values see theDesktop Menu Specification).

  string(s)

  NO

  1-3

  Path to an executable file on disk used to determine if the program is actually installed. If the path is not an absolute path, the file is looked up in the $PATH environment variable. If the file is not present or if it is not executable, the entry may