summaryrefslogtreecommitdiffstats
path: root/desktop-entry
diff options
context:
space:
mode:
authorWaldo Bastian <waldo.bastian@intel.com>2007-02-07 07:25:42 +0000
committerWaldo Bastian <waldo.bastian@intel.com>2007-02-07 07:25:42 +0000
commite1775a202af19adf9c73e6954293e2e95f8f13a0 (patch)
tree4a0f9747762b529ee4cf3cabf40064db1ed8ae6a /desktop-entry
parent647153fb87e5f642a7b7a3fdcec90961f36e89ab (diff)
downloadxdg-specs-e1775a202af19adf9c73e6954293e2e95f8f13a0.tar.xz
See http://lists.freedesktop.org/archives/xdg/2006-November/008714.html
Diffstat (limited to 'desktop-entry')
-rw-r--r--desktop-entry/ChangeLog11
-rw-r--r--desktop-entry/desktop-entry-spec.xml41
2 files changed, 37 insertions, 15 deletions
diff --git a/desktop-entry/ChangeLog b/desktop-entry/ChangeLog
index 4144c9a..e014539 100644
--- a/desktop-entry/ChangeLog
+++ b/desktop-entry/ChangeLog
@@ -1,3 +1,14 @@
+2007-02-06 Waldo Bastian <waldo.bastian@intel.com>
+ * Clearify that %U may result in either local paths or file: URLs
+ * Deprecate %d, %n, %D and %N. They aren't usable on Gnome and
+ you can do the same with dirname and basename in a script.
+ * Clearify that %f, %u, %F or %U should only be used once.
+ * Clearify that these codes should be ignored if there is no file
+ to open.
+ * Forbid the use of field codes in quoted arguments.
+ * Clearify that %F and %U should only be used as a stand alone argument.
+ * Bumped version to 1.0
+
2006-10-30 Waldo Bastian <waldo.bastian@intel.com>
* Remove equal sign from reserved characters in Exec args
* Add backslash to list of reserved characters in Exec args
diff --git a/desktop-entry/desktop-entry-spec.xml b/desktop-entry/desktop-entry-spec.xml
index 6b06019..4f59023 100644
--- a/desktop-entry/desktop-entry-spec.xml
+++ b/desktop-entry/desktop-entry-spec.xml
@@ -4,8 +4,8 @@
<article id="index">
<articleinfo>
<title>Desktop Entry Specification</title>
- <releaseinfo>Version 0.9.8</releaseinfo>
- <date>31 Oct 2006</date>
+ <releaseinfo>Version 1.0</releaseinfo>
+ <date>6 Feb 2007</date>
<authorgroup>
<author>
<firstname>Preston</firstname>
@@ -666,7 +666,8 @@
<row>
<entry><literal>%u</literal></entry>
<entry>
- A single URL.
+ A single URL. Local files may either be passed as
+ file: URLs or as file path.
</entry>
</row>
<row>
@@ -674,36 +675,32 @@
<entry>
A list of URLs.
Each URL is passed as a separate argument to
- the executable program.
+ the executable program. Local files may either be passed as
+ file: URLs or as file path.
</entry>
</row>
<row>
<entry><literal>%d</literal></entry>
<entry>
- Directory containing the file that would be passed in a <literal>%f</literal> field.
+ Deprecated.
</entry>
</row>
<row>
<entry><literal>%D</literal></entry>
<entry>
- List of directories containing the files that would be
- passed in to a <literal>%F</literal> field.
- Each directory is passed as a separate argument to
- the executable program.
+ Deprecated.
</entry>
</row>
<row>
<entry><literal>%n</literal></entry>
<entry>
- A single filename (without path).
+ Deprecated.
</entry>
</row>
<row>
<entry><literal>%N</literal></entry>
<entry>
- A list of filenames (without paths).
- Each filename is passed as a separate argument to
- the executable program.
+ Deprecated.
</entry>
</row>
<row>
@@ -748,6 +745,17 @@
</tbody>
</tgroup>
</informaltable>
+ <para>
+ A command line may contain at most one %f, %u, %F or %U field code.
+ If the application should not open any
+ file the %f, %u, %F and %U field codes must be removed from the
+ command line and ignored.
+ </para>
+ <para>
+ Field codes must not be used inside a quoted argument, the result of
+ field code expansion inside a quoted argument is undefined. The %F and
+ %U field codes may only be used as an argument on their own.
+ </para>
</sect1>
<sect1 id="mime-types">
<title>Registering MIME Types</title>
@@ -987,8 +995,11 @@ X-KDE-ServiceType=FooService</programlisting>
desktop entry, this should be expanded as two arguments,
<literal>--miniicon</literal> and the content of the
<varname>MiniIcon</varname> key, it can also be ignored by
- expanding it to no arguments) and %v (the device as listed
- in the <varname>Dev</varname> key in the desktop file).
+ expanding it to no arguments), %v (the device as listed
+ in the <varname>Dev</varname> key in the desktop file),
+ %d (the directory of a file), %D (the directories of
+ files), %n (the base name of a file) and %N (the base names
+ of files).
</para>
</listitem>
<listitem>