淡定的葡萄 · 如何快速查找SQL数据库数据和对象· 2 月前 · |
悲伤的冰棍 · 招生手册 - 深圳瑞得福学校 - ...· 2 月前 · |
精明的白开水 · Oracle APEX 24.1 全新发布 ...· 3 月前 · |
乐观的香菇 · 开源项目[nginx-lua-Graphic ...· 4 月前 · |
个性的草稿本 · 信用卡總覽,現金回饋卡等各式信用卡回饋相關資 ...· 5 月前 · |
Version 1.5
2020-04-27
Table of Contents
Exec
key
Legacy-Mixed
Encoding (Deprecated)
Desktop entry files should have the
.desktop
extension, except for files of
Type
Directory
which should have the
.directory
extension. Determining file type on basis
of extension makes determining the file type very easy and quick.
When no file extension is present, the desktop system should
fall back to recognition via "magic detection".
For applications, the part of the name of the desktop file before the
.desktop
extension should be a valid
D-Bus
well-known name
. This means that it is a sequence of
non-empty elements separated by dots (U+002E FULL STOP), none of
which starts with a digit, and each of which contains only
characters from the set
[A-Za-z0-9-_]
: ASCII
letters, digits, dash (U+002D HYPHEN-MINUS) and underscore
(U+005F LOW LINE).
The name of the desktop entry should follow the "reverse DNS"
convention: it should start with a reversed DNS domain name
controlled by the author of the application, in lower case. The
domain name should be followed by the name of the application, which
is conventionally written with words run together and initial capital
letters (CamelCase). For example, if the owner of
example.org
writes "Foo Viewer", they might choose
the name
org.example.FooViewer
, resulting in a file
named
org.example.FooViewer.desktop
.
Well-known names containing the dash are allowed but not recommended,
because the dash is not allowed in some related uses of reversed
DNS names, such as D-Bus object paths and interface names, and Flatpak
app IDs. If the author's domain name contains a dash, replacing it
with an underscore is recommended: this cannot cause ambiguity,
because underscores are not allowed in DNS domain names.
If the author's domain name contains a label starting with a digit,
(which is not allowed in D-Bus well-known names), prepending an
underscore to that element of the desktop entry name is recommended.
For example, 7-zip.org might release an application named
org._7_zip.Archiver
.
The value types recognized are
string
,
localestring
,
iconstring
,
boolean
, and
numeric
.
Values of type
string
may contain all ASCII
characters except for control characters.
Values of type
localestring
are user displayable,
and are encoded in UTF-8.
Values of type
iconstring
are the names of icons;
these may be absolute paths, or symbolic names for icons located using
the algorithm described in the
Icon
Theme Specification
. Such values are not user-displayable, and
are encoded in UTF-8.
Values of type
boolean
must either be the string
true
or
false
.
Values of type
numeric
must be a valid floating
point number as recognized by the
%f
specifier for
scanf
in the
C
locale.
The escape sequences
\s
,
\n
,
\t
,
\r
, and
\\
are supported for values of type
string
,
localestring
and
iconstring
, meaning
ASCII space, newline, tab, carriage return, and backslash, respectively.
Some keys can have multiple values. In such a case, the value of the key
is specified as a plural: for example,
string(s)
. The
multiple values should be separated by a semicolon and the value of the
key may be optionally terminated by a semicolon. Trailing empty strings
must always be terminated with a semicolon. Semicolons in these values
need to be escaped using
\;
.
Table 1. Locale Matching
淡定的葡萄 · 如何快速查找SQL数据库数据和对象 2 月前 |