From e1775a202af19adf9c73e6954293e2e95f8f13a0 Mon Sep 17 00:00:00 2001 From: Waldo Bastian Date: Wed, 7 Feb 2007 07:25:42 +0000 Subject: See http://lists.freedesktop.org/archives/xdg/2006-November/008714.html --- desktop-entry/ChangeLog | 11 ++++++++++ desktop-entry/desktop-entry-spec.xml | 41 +++++++++++++++++++++++------------- 2 files changed, 37 insertions(+), 15 deletions(-) (limited to 'desktop-entry') 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 + * 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 * 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 @@
Desktop Entry Specification - Version 0.9.8 - 31 Oct 2006 + Version 1.0 + 6 Feb 2007 Preston @@ -666,7 +666,8 @@ %u - A single URL. + A single URL. Local files may either be passed as + file: URLs or as file path. @@ -674,36 +675,32 @@ 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. %d - Directory containing the file that would be passed in a %f field. + Deprecated. %D - List of directories containing the files that would be - passed in to a %F field. - Each directory is passed as a separate argument to - the executable program. + Deprecated. %n - A single filename (without path). + Deprecated. %N - A list of filenames (without paths). - Each filename is passed as a separate argument to - the executable program. + Deprecated. @@ -748,6 +745,17 @@ + + 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. + + + 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. + Registering MIME Types @@ -987,8 +995,11 @@ X-KDE-ServiceType=FooService desktop entry, this should be expanded as two arguments, --miniicon and the content of the MiniIcon key, it can also be ignored by - expanding it to no arguments) and %v (the device as listed - in the Dev key in the desktop file). + expanding it to no arguments), %v (the device as listed + in the Dev 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). -- cgit v1.2.3-54-g00ecf