3 function code( $string ){
4 ?><code><font size="+1"><?php echo $string; ?></font></code><?php
16 ?><a href="http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html" target="_blank">DES</a><?php
19 function this_url( $name, $url ){
20 ?><a href="http://www.nautilus-actions.org/?q=node/377<?php echo $url; ?>"><?php echo $name; ?></a><?php
27 <!-- ----------------------------------------------------------------------------- -->
32 This is <acronym>DES-EMA</acronym>, the Extension for Menus and Actions of the <a href="http://www.freedesktop.org/" target="_blank">freedesktop.org</a> <a href="http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html" target="_blank">Desktop Entry Specification</a> (DES).
35 This specification aims to define a common format for user actions, allowing creators to share their actions between compliant desktop environments. This also covers how actions may be organized in a hierarchy of menus, submenus, and so on. It explains how actions and menus should be described in <?php desktop(); ?> files, how and where these <?php desktop(); ?> files are to be searched for, and how the final hierarchy should be built.
38 This specification doesn't explicitly handle the « level-zero » case (but see the <?php this_url( "appendix A", "#level-zero" ); ?> for a proposition about that).
41 Such an extension, targeting action items in file manager context menu, has been widely discussed in <a href="https://mail.kde.org/mailman/listinfo/kde-devel" target="_blank">KDE</a>, <a href="http://lists.freedesktop.org/mailman/listinfo/xdg" target="_blank">freedesktop.org</a> and <a href="http://foo-projects.org/mailman/listinfo/thunar-dev" target="_blank">Thunar</a> lists.
44 This is version 0.14 of our draft, updated on 2010, August 5th (see <?php this_url( "ChangeLog", "#changelog" ); ?> below).
47 <!-- ----------------------------------------------------------------------------- -->
51 <h4>Desktop file format</h4>
54 This specification relies on the common syntax defined in <?php DES(); ?>. We are just reminding here the reader of some main points.
57 <li>Files are UTF-8 encoded.</li>
58 <li>All keys and values are case sensitive.</li>
59 <li>The <?php code( "[Desktop Entry]" ); ?> group must be the first group of the file.</li>
60 <li>Boolean values must be "<?php code( "true" ); ?>" or "<?php code( "false" ); ?>".</li>
61 <li>Strings, in strings lists, are semicolon-separated; the list itself ends with a semicolon.</li>
64 Please note that, in all tables below, <?php code( "Req=YES" ); ?> just means that the value is required to define a valid action (resp. menu, resp. profile). A management UI is free to handle invalid actions (resp. menus, resp. profiles), and in fact that might even be needed in order to be able to fix invalid items, and make them valid...
67 <h4>Desktop file identifiant</h4>
70 In the rest of this specification, when a desktop file needs to be identified, we are using the basename of the file, without the extension, calling this a <i>desktop_file_id</i>.
73 <h4 id="searchpath">Desktop files search path</h4>
76 <?php desktop(); ?> files are searched for in "<?php code( "XDG_DATA_DIRS/file-manager/actions" ); ?>" directories, as defined in <a href="http://www.freedesktop.org/" target="_blank">freedesktop.org</a> <a href="http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html" target="_blank">XDG specifications</a>.
79 When building the whole hierarchy of the menus and actions to be displayed in the file manager context menu, the implementation should ensure that all used <i>desktop_file_id</i>s are unique. In the case where two <?php desktop(); ?> files have the same <i>desktop_file_id</i>, then the first found should take precedence.
82 <!-- ----------------------------------------------------------------------------- -->
84 <h2>Managed objects</h2>
86 <h4 id="managed-actions">Actions and profiles</h4>
89 This specification essentially defines how actions are to be described in <?php desktop(); ?> files in order to be displayed in a file manager context menu, and available as selectable items to be executed by the user.
92 An action might be defined as a group of several elements:
94 <li>the displayable part: label, tooltip, icon</li>
95 <li>conditions which have to be met in order the item be actually displayed in the context menu; these conditions are checked against the current file manager selection; these might be mimetypes, scheme, etc.</li>
96 <li>the command to be executed, and its parameters.</li>
100 As a user might want have the very same action (same label, same icon, and so on) execute a different command depending of the current environment at runtime, we define that an action is built on one to several profiles, where each profile is defined by:</li>
102 <li>conditions which have to be met in order the item be actually displayed in the context menu; these conditions are checked against the current file manager selection; these might be mimetypes, scheme, etc.</li>
103 <li>the command to be executed, and its parameters.</li>
107 <h4 id="managed-menus">Menus</h4>
110 This specification also defines how these actions may be gathered and ordered in menus, and submenus, and so on.
113 A menu is defined by:
115 <li>its displayable part: label, tooltip, icon</li>
116 <li>conditions which are to be met in order the menu, and recursively all of its subitems, be actuelly displayed in the file manager context menu</li>
117 <li>the ordered list of the items in the menu.</li>
124 As we are dealing with three level of objects (menus, actions, profiles), it appears that whether a condition must be defined at one of these levels is rather an arbitrary decision.
127 We so say that conditions may appear in any of these levels:
130 <li>When a condition appears in a menu definition, the result of its evaluation recursively applies to all included items. If the condition is not met, then neither the menu nor any of its subitems will be displayed.</li>
131 <li>When a condition appears in an action definition, the result of its evaluation applies to all its profiles. If the condition is not met, then the action will not be candidate; the profiles will even not be considered.</li>
134 <!-- ----------------------------------------------------------------------------- -->
136 <h2>Action definition</h2>
139 An action must be entirely defined in one <?php desktop(); ?> file. The action is identified by the <i>desktop_file_id</i> in which it is defined.
142 Only valid actions are displayed in the file manager context menu.
145 To be valid, an action must have a non-empty name, and at least one profile must be found valid at runtime.
148 As stated <?php this_url( "above", "#managed-actions" ); ?>, an action may embed its own conditions. If these conditions are not met at runtime, then profiles are not even considered.
151 An action is primarily defined in the <?php code( "[Desktop Entry]" ); ?> group, which has following keys:
157 <td><b>Description</b></td>
158 <td nowrap="nowrap"><b>Value type</b></td>
159 <td><b>Req ?</b></td>
163 <td><?php code( "Type" ); ?></td>
164 <td>This define this <?php desktop(); ?> file as an Action definition.<br />
165 Defaults to "<?php code( "Action" ); ?>".</td>
171 <td><?php code( "Name" ); ?></td>
172 <td>The label of the action, as it should appear in the context menu.<br />
173 <?php this_url( "Parameters", "#parameters" ); ?> may appear in <?php code( "Name" ); ?> value, and will be substituted at runtime.</td>
174 <td>localestring</td>
179 <td><?php code( "Tooltip" ); ?></td>
180 <td>The tooltip associated with the item in the context menu.<br />
181 <?php this_url( "Parameters", "#parameters" ); ?> may appear in <?php code( "Tooltip" ); ?> value, and will be substituted at runtime.<br />
184 <td>localestring</td>
189 <td><?php code( "Icon" ); ?></td>
190 <td>The name of a themed icon, or the path to an icon.<br />
191 <?php this_url( "Parameters", "#parameters" ); ?> may appear in <?php code( "Icon" ); ?> value, and will be substituted at runtime.<br />
192 Defaults to empty.</td>
193 <td>localestring</td>
198 <td><?php code( "Description" ); ?></td>
199 <td>A free description of the action, which may be used in the management UI, in a Web page, and so on.<br />
200 Defaults to empty.</td>
201 <td>localestring</td>
206 <td><?php code( "SuggestedShortcut" ); ?></td>
207 <td>A shortcut suggested for the action.<br />
208 Please note that this might be only a suggestion as the shortcut may be already reserved for another use. Implementation should not override an already existing shortcut to define this one.<br />
209 The format may look like "<Control>a" or "<Shift><Alt>F1".<br />
210 Defaults to empty.</td>
216 <td><?php code( "Enabled" ); ?></td>
217 <td>Whether the item is candidate to be displayed in the context menu.<br />
218 A user might define many actions or menus, and choose to only enable some of them from time to time.<br />
219 Defaults to "<?php code( "true" ); ?>".</td>
225 <td><?php code( "Hidden" ); ?></td>
226 <td>From <?php DES(); ?>: <?php code( "Hidden" ); ?> should have been called <?php code( "Deleted" ); ?>. 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 <?php desktop(); ?> 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 make install install a file with <?php code( "Hidden=true" ); ?> in it.<br />
227 Defaults to "<?php code( "false" ); ?>".</td>
233 <td><?php code( "TargetContext" ); ?></td>
234 <td>Whether the item targets the file manager context menu.<br />
235 This means that the action will be candidate if defined conditions met the current selection.<br />
236 Defaults to "<?php code( "true" ); ?>".</td>
242 <td><?php code( "TargetLocation" ); ?></td>
243 <td>Whether the item targets a location menu, if the file manager supports this.<br />
244 This means that the action will be candidate if defined conditions met the current location.<br />
245 Defaults to "<?php code( "false" ); ?>".</td>
251 <td><?php code( "TargetToolbar" ); ?></td>
252 <td>Whether the item targets the toolbar, if the file manager supports this.<br />
253 Note that, in order to keep a nice and stable UI, the file manager may reserve toolbar actions to those only targeting the current folder.<br />
254 Defaults to "<?php code( "false" ); ?>".</td>
260 <td><?php code( "ToolbarLabel" ); ?></td>
261 <td>The label to be displayed in the toolbar, if it is not the same that those displayed in context menu.<br />
262 <?php this_url( "Parameters", "#parameters" ); ?> may appear in <?php code( "ToolbarLabel" ); ?> value, and will be substituted at runtime.<br />
263 Defaults to <?php code( "Name" ); ?> value.</td>
264 <td>localestring</td>
269 <td nowrap="nowrap"><?php code( "Profiles" ); ?></td>
270 <td><p>The ordered list of the profiles attached to this action.<br />
271 Each element of this strings list may be:
273 <li>a <i>profile_id</i>, <i>i.e.</i> the id of a profile, as an ASCII string</li>
274 <li>a command to be executed, if the string is enclosed between square brackets ('<?php code( "[" ); ?>'...'<?php code( "]" ); ?>').</li>
277 So, "<?php code( "Profiles" ); ?>" key has a dynamic value: if an element of the string list is enclosed between square brackets ('<?php code( "[" ); ?>'...'<?php code( "]" ); ?>'), it is considered as a command, optionally with <?php this_url( "parameters", "#parameters" ); ?> and arguments, and so will be subject to an evaluation at runtime. If the standard output of the command is a valid strings list, then it is substituted to the bracketed element. It the command doesn't exist or cannot be executed, the bracketed element is just ignored.
280 After reading, and maybe evaluation of dynamic elements, profiles identified by the "<?php code( "Profiles" ); ?>" value, but not found in this <?php desktop(); ?> file, are just ignored.
283 It is up to the implementation to decide whether profiles found in this <?php desktop(); ?> file, but not identified in this list, should or not be attached to the action.<br/>
284 It could be for example an acceptable fallback to append these « orphan » profiles at the end of the list of profiles.<br />
285 Another choice might also be:
288 <li>at runtime, only attach to the action profiles which are listed in this "<?php code( "Profiles" ); ?>" key</li>
289 <li>while a management UI may load all profiles found in the <?php desktop(); ?> file.</li>
292 <td>strings list</td>
298 <!-- ----------------------------------------------------------------------------- -->
300 <h2>Profile definition</h2>
303 Profile is identified by its <i>profile_id</i>, as an ASCII string.
306 Each profile defined in the "<?php code( "Profiles" ); ?>" key, whether statically by its <i>profile_id</i> identifiant, or as the result of an evaluated command, must be defined in a <?php code( "[X-Action-Profile <i>profile_id</i>]" ); ?> group.
309 When several profiles are defined for an action, only the first valid profile whose conditions are met at runtime is selected to be made available in the context menu.
312 Defining several profiles let so the user have an ordered OR-ed set of conditions, i.e. have one action be available if one set of conditions is met, OR this same action, though most probably with a slightly different command, be available if another set of conditions is met, and so on.
315 In order to be valid, a profile must at least have an executable command.
321 <td><b>Description</b></td>
322 <td nowrap="nowrap"><b>Value type</b></td>
323 <td><b>Req ?</b></td>
327 <td><?php code( "Name" ); ?></td>
328 <td>The name of the profile; this name is not displayed in the context menu, and should just be thought as a convenience for the management UI. It may also be seen as a good place for a description of what the profile exactly does.<br />
329 Defaults to empty.</td>
330 <td>localestring</td>
335 <td><?php code( "Exec" ); ?></td>
336 <td>From <?php DES(); ?>: command to execute, possibly with arguments<br />
337 <?php this_url( "Parameters", "#parameters" ); ?> may appear in <?php code( "Exec" ); ?> value, and will be substituted at runtime.
344 <td><?php code( "Path" ); ?></td>
345 <td>The working directory the program should be started in.<br />
346 <?php this_url( "Parameters", "#parameters" ); ?> may appear in <?php code( "Path" ); ?> value, and will be substituted at runtime.<br />
347 Defaults to base directory of the current selection, which happens to be the value of "<?php code( "%d" ); ?>" parameter.
354 <td><?php code( "ExecutionMode" ); ?></td>
355 <td>Execution mode of the program.<br />
356 This may be chosen between following values:
358 <li><?php code( "Normal" ); ?>: Starts as a standard graphical user interface</li>
359 <li><?php code( "Terminal" ); ?>: Starts the preferred terminal of the graphical environment, and runs the command in it</li>
360 <li><?php code( "Embedded" ); ?>: Makes use of a special feature of the file manager which allows a terminal to be ran inside of it; an acceptable fallback is <?php code( "Terminal" ); ?></li>
361 <li><?php code( "DisplayOutput" ); ?>: The ran terminal may be closed at end of the command, but standard streams (stdout, stderr) should be collected and displayed; an acceptable fallback is <?php code( "Terminal" ); ?></li>
363 Defaults to "<?php code( "Normal" ); ?>".
370 <td><?php code( "StartupNotify" ); ?></td>
371 <td>From <?php DES(); ?>: if "<?php code( "true" ); ?>", it is KNOWN that the application will send a "remove" message when started with the DESKTOP_STARTUP_ID environment variable set. If "<?php code( "false" ); ?>", it is KNOWN that the application does not work with startup notification at all (does not shown any window, breaks even when using StartupWMClass, etc.). If absent, a reasonable handling is up to implementations (assuming false, using StartupWMClass, etc.). (See the <a href="http://www.freedesktop.org/Standards/startup-notification-spec">Startup Notification Protocol Specification</a> for more details).<br />
372 Only relevant when <?php code( "ExecutionMode=Normal" ); ?>.<br />
373 Defaults to "<?php code( "false" ); ?>".</td>
379 <td><?php code( "StartupWMClass" ); ?></td>
380 <td>From <?php DES(); ?>: if specified, it is known that the application will map at least one window with the given string as its WM class or WM name hint (see the <a href="http://www.freedesktop.org/Standards/startup-notification-spec">Startup Notification Protocol Specification</a> for more details). <br />
381 Only relevant when <?php code( "ExecutionMode=Normal" ); ?>.<br />
382 Defaults to empty.</td>
388 <td><?php code( "ExecuteAs" ); ?></td>
389 <td>The user the command must be ran as. The user may be identified by its numeric UID or by its login.<br />
390 The implementation should ignore a profile defining a non-existing UID or login as a value for the <?php code( "ExecuteAs" ); ?> key.<br />
391 The implementation might require the presence of a well-configured subsystem (e.g. sudo).<br />
392 Defaults to empty: the command will be executed as the current user.</td>
398 <!-- ----------------------------------------------------------------------------- -->
400 <h2>Menu definition</h2>
403 Just as an action, a menu has label, tooltip, icon.
406 But, where an action is intended to eventually execute a command, a menu is just a way of gathering some subitems, actions or menus, in an ordered list.
409 In order to be valid, a menu must have a non-empty name, and include at least one valid subitem.
412 It is the responsability of the implementation to ensure that the displayed menus are relevant, <i>i.e.</i> not empty, with no separator at the begin or the end of the menu, with no double separator, etc.
415 As stated <?php this_url( "above", "#managed-menus" ); ?>, a menu may embed its own conditions. If these conditions are not met at runtime, then subitems are not even considered.
418 The menu is so defined as a particular case of a <?php desktop(); ?> file, identified by its <i>desktop_file_id</i>, whose the <?php code( "[Desktop Entry]" ); ?> section has following keys:
423 <td nowrap="nowrap"><b>Key</b></td>
424 <td><b>Description</b></td>
425 <td nowrap="nowrap"><b>Value type</b></td>
426 <td><b>Req ?</b></td>
430 <td><?php code( "Type" ); ?></td>
431 <td>This define this <?php desktop(); ?> file as a Menu definition.<br />
432 Must be equal to "<?php code( "Menu" ); ?>".</td>
435 </tr><tr valign="top">
436 <td><?php code( "Name" ); ?></td>
437 <td>The label of the menu, as it should appear in the context menu.<br />
438 <?php this_url( "Parameters", "#parameters" ); ?> may appear in <?php code( "Name" ); ?> value, and will be substituted at runtime.</td>
439 <td>localestring</td>
444 <td><?php code( "Tooltip" ); ?></td>
445 <td>The tooltip associated with the submenu in the context menu.<br />
446 <?php this_url( "Parameters", "#parameters" ); ?> may appear in <?php code( "Tooltip" ); ?> value, and will be substituted at runtime.<br />
449 <td>localestring</td>
454 <td><?php code( "Icon" ); ?></td>
455 <td>The name of a themed icon, or the path to an icon, to be associated to the submenu.<br />
456 <?php this_url( "Parameters", "#parameters" ); ?> may appear in <?php code( "Icon" ); ?> value, and will be substituted at runtime.<br />
457 Defaults to empty.</td>
458 <td>localestring</td>
463 <td><?php code( "Description" ); ?></td>
464 <td>A free description of the menu, which may be used in the management UI, in a Web page, and so on.<br />
465 Defaults to empty.</td>
466 <td>localestring</td>
471 <td><?php code( "SuggestedShortcut" ); ?></td>
472 <td>A shortcut suggested for the menu.<br />
473 Please note that this might be only a suggestion as the shortcut may be already reserved for another use. Implementation should not override an already existing shortcut to define this one.<br />
474 The format may look like "<Control>a" or "<Shift><Alt>F1".<br />
475 Defaults to empty.</td>
481 <td><?php code( "Enabled" ); ?></td>
482 <td>Whether the item is candidate to be displayed in the context menu.<br />
483 A user might define many actions or menus, and choose to only enable some of them from time to time.<br />
484 Defaults to "<?php code( "true" ); ?>".</td>
490 <td><?php code( "Hidden" ); ?></td>
491 <td>From <?php DES(); ?>: <?php code( "Hidden" ); ?> should have been called <?php code( "Deleted" ); ?>. 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 <?php desktop(); ?> 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 make install install a file with <?php code( "Hidden=true" ); ?> in it.<br />
492 Defaults to "<?php code( "false" ); ?>".</td>
498 <td nowrap="nowrap" id="itemslist"><?php code( "ItemsList" ); ?></td>
499 <td><p>The ordered list of the subitems (actions or menus) attached to this menu.<br />
500 Each element of this strings list may be:
503 Wrong formulation because this prevent to use GConf uuid
504 <li>a <i>desktop_file_id</i>, <i>i.e.</i> the id of a <?php desktop(); ?> file which describes an action or a menu,</li>
506 <li>the id of an action or a menu,</li>
507 <li>a command to be executed, if the string is enclosed between square brackets ('<?php code( "[" ); ?>'...'<?php code( "]" ); ?>').</li>
509 So, "<?php code( "ItemsList" ); ?>" key has a dynamic value: if an element of the string list is enclosed between square brackets ('<?php code( "[" ); ?>'...'<?php code( "]" ); ?>'), it is considered as a command, optionally with <?php this_url( "parameters", "#parameters" ); ?> and arguments, and so will be subject to an evaluation at runtime. If the standard output of the command is a valid strings list, then it is substituted to the bracketed element. It the command doesn't exist or cannot be executed, the bracketed element is just ignored.
512 The keyword <?php code( "SEPARATOR" ); ?> is a special case of <i>desktop_file_id</i>. It may be used to define a separator in the menu.
515 Actions or menus identified here as a subitem of a menu should not be redisplayed elsewhere.
518 Actions or menus not identified here, or not identified as subitems of a menu or of a submenu, should not be ignored by the implementation; instead of that, the implementation should display these « orphan » items, most probably at the level zero of the hierarchy (though in a unspecified order).
521 <td>strings list</td>
527 <!-- ----------------------------------------------------------------------------- -->
532 As a remainder of that has been said above, each one of the following conditions may appear in a menu, an action or a profile.
535 Conditions are AND-ed, that is all specified conditions which appear in a menu, an action or a profile must be met in order the item be considered as a candidate.
538 When a condition is defined as a string list, elements of the list are considered as OR-ed (but for <?php this_url( "Capabilities", "#capabilities" ); ?>).<br />
539 When an element of the string list is negated, it must be considered as an AND condition.
544 The line « <?php code( "MimeTypes = image/*; video/*;" ); ?> » must be read as « condition is met if each file in the current selection has a mimetype of "<?php code( "image/*" ); ?>" or of "<?php code( "video/*" ); ?>" »
546 <p>And the line « <?php code( "MimeTypes = image/*; video/*; !image/bmp" ); ?> » must be read as « condition is met if each file in the current selection has a mimetype of "<?php code( "image/*" ); ?>" or of "<?php code( "video/*" ); ?>", but must not have the "<?php code( "image/bmp" ); ?>" mimetype ».
553 <td><b>Description</b></td>
554 <td nowrap="nowrap"><b>Value type</b></td>
555 <td><b>Req ?</b></td>
559 <td><?php code( "OnlyShowIn" ); ?>,<br /><?php code( "NotShowIn" ); ?></td>
560 <td>From <?php DES(); ?>: a list of strings identifying the environments that should display/not display a given desktop entry. Only one of these keys, either <?php code( "OnlyShowIn" ); ?> or <?php code( "NotShowIn" ); ?>, may appear in a group (for possible values see the <a href="http://www.freedesktop.org/Standards/menu-spec">Desktop Menu Specification</a>).<br />
561 Defaults to show anywhere.</td>
562 <td nowrap="nowrap">strings list</td>
567 <td><?php code( "TryExec" ); ?></td>
568 <td>Fromn <?php DES(); ?>: path to an executable file on disk used to determine if some 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 found or is not executable, this condition evals to <?php code( "false" ); ?>.<br />
569 <?php this_url( "Parameters", "#parameters" ); ?> may appear in <?php code( "TryExec" ); ?> value, and will be substituted at runtime.<br />
570 Defaults to successful.</td>
576 <td><?php code( "ShowIfRegistered" ); ?></td>
577 <td>The well-known name of a DBus service.<br />
578 The item will be candidate if the named service is registered on session DBus at runtime.<br />
579 <?php this_url( "Parameters", "#parameters" ); ?> may appear in <?php code( "ShowIfRegistered" ); ?> value, and will be substituted at runtime.<br />
580 Defaults to successful.<br />
583 <td valign="top"><i>Comment:</i></td>
584 <td valign="top"><i>This is the equivalent of KDE "<?php code( "X-KDE-ShowIfRunning" ); ?>" key.</i></td>
593 <td><?php code( "ShowIfTrue" ); ?></td>
594 <td>A command which, when executed, should output a string on stdout.<br />
595 The item will be candidate if the outputed string is equal to "<?php code( "true" ); ?>".<br />
596 <?php this_url( "Parameters", "#parameters" ); ?> may appear in <?php code( "ShowIfTrue" ); ?> value, and will be substituted at runtime.<br />
597 Example: <?php code( "[ -r %d/.svn/entries ] && echo \"true\"" ); ?><br />
598 Defaults to successful.<br />
601 <td valign="top"><i>Comment:</i></td>
602 <td valign="top"><i>This is the equivalent of KDE "<?php code( "X-KDE-ShowIfDBusCall" ); ?>" key, extended to any command able to output a string.</i></td>
611 <td><?php code( "ShowIfRunning" ); ?></td>
612 <td>The name of a process.<br />
613 The item will be candidate if the process name is found in memory at runtime.<br />
614 <?php this_url( "Parameters", "#parameters" ); ?> may appear in <?php code( "ShowIfRunning" ); ?> value, and will be substituted at runtime.<br />
615 Defaults to successful.
622 <td><?php code( "MimeTypes" ); ?></td>
623 <td>From <?php DES(); ?>: the MIME type(s) supported by this application.<br />
624 Each mimetype may be fully specified (e.g. "<?php code( "audio/mpeg;" ); ?>"), or as a group (e.g. "<?php code( "image/*;" ); ?>").<br />
625 Mimetypes may be negated (e.g. "<?php code( "audio/*; !audio/mpeg;" ); ?>").<br />
626 Some of well-known mimetypes include:<br />
628 <li>"<?php code( "all/all" ); ?>": matches all items</li>
629 <li>"<?php code( "all/allfiles" ); ?>": matches only files</li>
630 <li>"<?php code( "inode/directory" ); ?>": matches only directories</li>
632 '<?php code( "*" ); ?>' character is accepted as a wildcard in only two cases:
634 <li>when used alone as in "<?php code( "*;" ); ?>", <i>i.e.</i> when used as a group wildcard without subgroup,</li>
635 <li>when used as the subgroup wildcard, after the '<?php code( "/" ); ?>' character, as in "<?php code( "image/*" ); ?>".</li>
637 Defaults to "<?php code( "*;" ); ?>", which happends to be exactly equivalent to "<?php code( "all/all" ); ?>" or to "<?php code( "all/*" ); ?>".
640 <td valign="top"><i>Comment:</i></td>
642 <td valign="top"><i>Do we should include "<?php code( "allfiles" ); ?>" mimetype, which seems obsolete, in order to keep compatibility with some old versions of KDE ?</i></td>
647 <td><i>This is the equivalent of "<?php code( "ServiceTypes" ); ?>", "<?php code( "X-KDE-ServiceTypes" ); ?>", "<?php code( "ExcludeServiceTypes" ); ?>" KDE and "<?php code( "MimeType" ); ?>" freedesktop keys.</i></td>
651 <td>strings list</td>
656 <td><?php code( "Basenames" ); ?></td>
657 <td>List of basenames the selection should match in order this profile be selected.<br />
658 '<?php code( "*" ); ?>' character is accepted as a wildcard.<br />
659 Basenames may be negated (e.g. "<?php code( "*; !*.h;" ); ?>").<br />
660 Defaults to "<?php code( "*;" ); ?>".</td>
661 <td>strings list</td>
666 <td><?php code( "Matchcase" ); ?></td>
667 <td>Whether the above <?php code( "Basenames" ); ?> is case sensitive.<br />
668 Defaults to "<?php code( "true" ); ?>".</td>
674 <td id="selection-count"><?php code( "SelectionCount" ); ?></td>
675 <td>Whether this profile may be selected depending of the count of the selection.<br />
676 This is a string of the form "<?php code( "{'<'|'='|'>'} number" ); ?>".<br />
677 Examples of valid strings are: "<?php code( "=0" ); ?>", "<?php code( "> 1" ); ?>", "<?php code( "< 10" ); ?>".<br />
678 Defaults to "<?php code( ">0" ); ?>".
685 <td><?php code( "Schemes" ); ?></td>
686 <td>The list of schemes the selection must satisfy in order the item be selected.<br />
687 Exemples of well-known schemes are:<br />
689 <li>"<?php code( "file" ); ?>"</li>
690 <li>"<?php code( "sftp" ); ?>"</li>
691 <li>"<?php code( "smb" ); ?>"</li>
692 <li>"<?php code( "http" ); ?>"</li>
694 Schemes may be negated, e.g. "<?php code( "!http;" ); ?>".<br />
695 Defaults to "<?php code( "*;" ); ?>".
698 <td valign="top"><i>Comment:</i></td>
699 <td valign="top"><i>This is the equivalent of "<?php code( "X-KDE-Protocol" ); ?>" and "<?php code( "X-KDE-Protocols" ); ?>" KDE keys.</i></td>
704 <td><i>Does a "Protocols" key would be better understood than a "Schemes" key ?</i></td>
709 <td>strings list</td>
714 <td><?php code( "Folders" ); ?></td>
715 <td>A list of paths the current base directory must be in in order the item be selected.<br />
716 A folder path may be negated (e.g. "<?php code( "/data; !/data/resources/secret;" ); ?>").<br />
717 '<?php code( "*" ); ?>' character is accepted as a wildcard, replacing any level(s) of subdirectory (e.g. "<?php code( "/music; /video; !*/secret;" ); ?>").<br />
718 Also note that a terminating '<?php code( "/*" ); ?>' is always implied by the definition of this key.<br />
719 Last, note that different implementations today widely consider that, for a directory point of view, having no selection is roughly the same that selecting the currently opened folder. If this makes a difference for your action, then <?php this_url( "SelectionCount", "#selection-count" ); ?> is for you.
720 Defaults to "<?php code( "/" ); ?>".</td>
721 <td>strings list</td>
726 <td id="capabilities"><?php code( "Capabilities" ); ?></td>
727 <td>A list of capabilities each item of the selection must satisfy in order the item be candidate.<br />
728 Capabilities may be negated.<br />
729 Please note that each element of the specified list must be considered as ANDed, i.e. if we have "<?php code( "Capabilities=Readable;Writable;!Local" ); ?>", then each element of the selection must be both readable AND writable AND not local.<br />
730 Capabilities have to be chosen between following predefined ones:
732 <li>"<?php code( "Owner" ); ?>": current user is the owner of selected items</li>
733 <li>"<?php code( "Readable" ); ?>": selected items are readable by user (probably more usefull when negated)</li>
734 <li>"<?php code( "Writable" ); ?>": selected items are writable by user</li>
735 <li>"<?php code( "Executable" ); ?>": selected items are executable by user</li>
736 <li>"<?php code( "Local" ); ?>": selected items are local</li>
738 Defaults to an empty list (do not care of capabilities).
741 <td valign="top"><i>Comment:</i></td>
742 <td valign="top"><i>This is the equivalent of "<?php code( "X-KDE-Require" ); ?>" KDE key.</i></td>
747 <td><i>Some other relevant capabilities ?</i></td>
752 <td>strings list</td>
758 <!-- ----------------------------------------------------------------------------- -->
760 <h2 id="parameters">Parameters</h2>
762 <h3 id="parm-expansion">Parameters expansion</h3>
764 Whenever parameters are said to be accepted, they will be replaced at run-time.
767 It should be noted by the implementation that items, actions or menus, which were considered valid at load time, may become invalid after parameters expansion, due, for example, to a label becoming empty.
770 Also, this specification doesn't make any assumption about whether a parameter is relevant in a given situation, or secure, or may be used several times, or so. It instead considers that this sort of check is up to the action creator.
773 The implementation should take care of correctly shell-escape the substituted values, so that it should not be needed for the action creator to use any sort of quotes to handle spaces in filenames.
776 <h3 id="parm-singular">Multiple execution</h3>
778 The action creator may want its command be executed once, giving it the list of selected items as argument.
781 Or the action creator may want its command be repeated for each selected item, giving to each execution a different item as argument.
784 Actually, the command defined in the <?php code( "Exec" ); ?> key will be executed once, or repeated for each selected item, depending of the form of arguments.
787 Though some parameters are not sensible to the count of the selection (e.g. "<?php code( "%c" ); ?>", the selection count itself), most have two declensions:
789 <li>a "singular" one, e.g. "<?php code( "%b" ); ?>", the basename of the selected item</li>
790 <li>a "plural" one, e.g. "<?php code( "%B" ); ?>", a space-separated list of the basenames of selected items</li>
794 When the selection is empty or contains only one element, and from this topic point of view, these two forms are exactly equivalent.
797 When the selection contains more than one item:
799 <li>if the first relevant parameter found in the <?php code( "Exec" ); ?> key is of a singular form, then the implementation should consider that the command is only able to deal with one item at a time, and thus that it has to be ran one time for each selected item;</li>
800 <li>contrarily, if the first relevant parameter found is of the plural form, then the implementation should consider that the command is able to deal with a list of items, and thus the command should be executed only once;</li>
801 <li>if all found parameters are « irrelevant », then the default is to consider that the command should be executed only once.</li>
809 Say the current folder is /data, and the current selection contains the three files <?php code( "pierre" ); ?>, <?php code( "paul" ); ?> and <?php code( "jacques" ); ?>.
812 If the <?php code( "Exec" ); ?> key is "<?php code( "echo %b" ); ?>", then the following commands will be run:<br />
813 "<?php code( "echo pierre" ); ?>"<br />
814 "<?php code( "echo paul" ); ?>"<br />
815 "<?php code( "echo jacques" ); ?>"<br />
818 If the <?php code( "Exec" ); ?> key is "<?php code( "echo %B" ); ?>", then the following command will be run:<br />
819 "<?php code( "echo pierre paul jacques" ); ?>"
822 If the <?php code( "Exec" ); ?> key is "<?php code( "echo %b %B" ); ?>", then the following commands will be run:<br />
823 "<?php code( "echo pierre pierre paul jacques" ); ?>"<br />
824 "<?php code( "echo paul pierre paul jacques" ); ?>"<br />
825 "<?php code( "echo jacques pierre paul jacques" ); ?>"<br />
828 If the <?php code( "Exec" ); ?> key is "<?php code( "echo %B %b" ); ?>", then the following commands will be run:<br />
829 "<?php code( "echo pierre paul jacques pierre" ); ?>"<br />
830 The basename used is those of the first item of the selected items list as provided by the file manager. There is only a small chance that it would be those of the first visually selected item, and there is contrarily great chances that it would not be predictable at all.
833 Even if the chosen parameter is the same for all selected items, the behavior is the identical.<br />
834 If the <?php code( "Exec" ); ?> key is "<?php code( "echo %d %B" ); ?>", then the following commands will be run:<br />
835 "<?php code( "echo /data pierre paul jacques" ); ?>"<br />
836 "<?php code( "echo /data pierre paul jacques" ); ?>"<br />
837 "<?php code( "echo /data pierre paul jacques" ); ?>"<br />
838 which obviously doesn't make many sense.
841 As the last three examples show up, action creator should avoid to mix singular and plural forms, unless they know what they are doing, whether it doesn't make sense or this may lead to unwaited results.
844 Nonetheless, mixing singular and plural forms, though we warn against, is not an error. As a counter example, there may be some situations where a command-line of the form "<?php code( "echo %B %d" ); ?>" would be useful. In that case, the following command would be run:<br />
845 "<?php code( "echo pierre paul jacques /data" ); ?>"<br />
846 It is left as an exercize for the reader to find a use case.
851 The word "first" in the following table makes so reference to the case where the singular form parameter is used in a plural form command. We recall one more time that which is the "first" element is not specified, and, most probably, rather unpredictable.
856 <td align="center"><b>Parameter</b></td>
857 <td><b>Description</b></td>
858 <td colspan="3" align="center"><b>Said form</b></td>
862 <td align="center">%b</td>
863 <td>(first) basename</td>
870 <td align="center">%B</td>
871 <td>space-separated list of basenames</td>
878 <td align="center">%c</td>
879 <td>count of selected items</td>
886 <td align="center">%d</td>
887 <td>(first) base directory</td>
894 <td align="center">%D</td>
895 <td>space-separated list of base directory of each selected items</td>
902 <td align="center">%f</td>
903 <td>(first) file name</td>
910 <td align="center">%F</td>
911 <td>space-separated list of selected file names</td>
918 <td align="center">%h</td>
919 <td>hostname of the (first) URI</td>
926 <td align="center">%m</td>
927 <td>mimetype of the (first) selected item</td>
934 <td align="center">%M</td>
935 <td>space-separated list of the mimetypes of the selected items</td>
942 <td align="center">%n</td>
943 <td>username of the (first) URI</td>
950 <td align="center">%p</td>
951 <td>port number of the (first) URI</td>
958 <td align="center">%s</td>
959 <td>scheme of the (first) URI</td>
966 <td align="center">%u</td>
974 <td align="center">%U</td>
975 <td>space-separated list of selected URIs</td>
982 <td align="center">%w</td>
983 <td>(first) basename without the extension</td>
990 <td align="center">%W</td>
991 <td>space-separated list of basenames without their extension</td>
998 <td align="center">%x</td>
999 <td>(first) extension</td>
1006 <td align="center">%X</td>
1007 <td>space-separated list of extensions</td>
1014 <td align="center">%%</td>
1015 <td>the « % » character</td>
1023 <!-- ----------------------------------------------------------------------------- -->
1025 <h2 id="hierarchy">Building the whole hierarchy</h2>
1028 The processus described here is only a sort of meta-algorythm, whose only goal is to better specify how the menus and actions should be layouted in the final hierarchy.
1031 The implementor might take advantage of preparing once the whole hierarchy of the menus and actions:
1034 <li>to minimize the time spent in the parsing of all files;</li>
1035 <li>to identify and eliminate duplicate <i>desktop_file_id</i>s,</li>
1036 <li>to eliminate invalid menus and actions.</li>
1040 <li>as described in <?php this_url( "Desktop files search path", "#searchpath" ); ?> chapter, scan relevant directories, eliminating duplicate <i>desktop_file_id</i>s and invalid <?php desktop(); ?> files; implentation so obtains a flat list of menus or actions;<br /> </li>
1041 <li>recursively build the hierarchy; this merely consists in the build of the hierarchy as a tree of menus and actions, where each <i>desktop_file_id</i> addressed as the subitem of a menu consumes this same id from the flat list
1043 <li>if the level-zero order (which is not specified here, but see <?php this_url( "Appendix A", "#level-zero" ); ?> for a proposal) is defined by the implementation, then each <i>desktop_file_id</i> addressed in the level zero consumes this same id from the flat list;</li>
1044 <li>else, if might be reasonable to start with an empty tree;</li>
1045 </ul><br /> </li>
1046 <li>at the end, implementation stays with:
1048 <li>the output tree with some menus at the root;</li>
1049 <li>some actions, left in the input flat list because they were not addressed by any menu; these left actions should be added to the level zero of the hierarchy (though in a unspecified order)</li>
1050 <li>some menus, left in the input flat list because their subitems were not found; as these menus happen to be empty, they must be considered as invalid.</li>
1055 After this built phase, the resultant tree only contains valid (before runtime parameters expansion) menus and actions.
1058 So, menus or actions may appear at the level zero of the whole hierarchy for only two reasons:
1060 <li>because they are explicitly addressed by the level-zero configuration, if the implementation defines it; this may concern menus and actions;</li>
1061 <li>because these items were not adressed by any menu (but this may only concern actions).</li>
1065 <!-- ----------------------------------------------------------------------------- -->
1067 <h2 id="level-zero">Appendix A. The level-zero case</h2>
1070 Though not strictly an action or a menu definition, the level-zero issue might be easily solved by this specification. The implementation is free to implement it or not.
1073 Ordering the elements which have to be displayed at the level-zero of the file manager context menu is just a particular case of a menu definition.
1076 An implementation might define a <?php code( "level-zero.directory" ); ?> file, which would contain the ordered list of level zero items identified by their <i>desktop_file_id</i>.
1079 The <?php code( "[Desktop Entry]" ); ?> section of this <?php code( "level-zero.directory" ); ?> file would so have only one of the following keys:
1084 <td nowrap="nowrap"><b>Key</b></td>
1085 <td><b>Description</b></td>
1086 <td nowrap="nowrap"><b>Value type</b></td>
1087 <td><b>Req ?</b></td>
1091 <td><?php code( "ItemsList" ); ?></td>
1092 <td>Same signification as <?php this_url( "above", "#itemslist" ); ?><br />
1094 <td>strings list</td>
1099 <td><?php code( "GetItemsList" ); ?></td>
1100 <td>Same signification as
1101 <a href="http://www.nautilus-actions.org/?q=node/377#getitemslist">above</a><br />
1110 The <?php code( "level-zero.directory" ); ?> file may be searched for in <?php code( "XDG_DATA_DIRS/file-manager/actions" ); ?>. The first one found would be used.
1113 Not finding a <?php code( "level-zero.directory" ); ?> file should not prevent actions or menus to be displayed. Instead, they just would be displayed in an unspecified, implementation-dependant, order.
1116 The name "<?php code( "level-zero.directory" ); ?>" is chosen to not risk any collision with regular <?php desktop(); ?> files.
1119 <!-- ----------------------------------------------------------------------------- -->
1121 <h2 id="menu-rationales">Appendix B. Some rationales about menu definition</h2>
1123 <h3>The KDE way</h3>
1126 KDE defines the "<?php code( "X-KDE-Submenu" ); ?>" key. This key defines the label of a submenu the current action(s) should be included in. Order of the actions in this submenu is defined by the "<?php code( "Actions" ); ?>" key, though this might be altered by the "<?php code( "X-KDE-Priority" ); ?>" key. When several <?php desktop(); ?> files define the same submenu, actions are merged.
1129 What are the advantages of this solution ?
1132 <li>It exists, and is widely used in KDE ServiceMenus.</li>
1133 <li>This is a down-to-top, self-contained, approach where each action says in which submenu it whishes to be included in.</li>
1136 What are the inconvenients of this solution ?
1139 <li>It lacks of an <?php code( "Icon" ); ?> key associated to the submenu; though this certainly be added, the risk exists that several submenus with same label actually define different icons.</li>
1140 <li>It lacks of a <?php code( "Tooltip" ); ?> key associated to the submenu (though... idem as above)</li>
1141 <li>When several <?php desktop(); ?> files define the same submenu (<i>i.e.</i> the same label), a merge operation is done so that all actions are included in the same submenu. The order of the actions after such a merge operation is not defined.</li>
1142 <li>There is no way to define the global order of the actions, when all <?php desktop(); ?> files have been dealt with.</li>
1143 <li>As the menu is adressed at the action-level, one has to modifiy each action when he wants to reorganize his menus.</li>
1144 <li>Whether there is any menu or not, there is no way to define order of level-zero elements.</li>
1147 <h3>An alternate way</h3>
1150 As the menu may be seen as just a particular case of action, it appears logically that its definition may directly be derived from the action definition.
1153 What are the advantages (over the KDE way) of using this definition ?
1156 <li>User/sysadmin has full control on the order of the displayed items, and on the content of the submenus.</li>
1157 <li>Defining menus outside of the actions is a conceptual advantage; this let creators of actions do their work without having to wonder in which menu the action should go.</li>
1158 <li>There is no way for an action creator to decide himself if its action is <i>Important</i> or should be displayed at the <i>TopLevel</i>.</li>
1159 <li>Associated with <i>ad-hoc</i> conditions, we are able to define conditional menus, thus optimizing the building of the whole contextual menu.</li>
1160 <li>This is not XML ;-)</li>
1163 What are the inconvenients ?
1166 <li>As a top-to-down approach, just dropping a new <?php desktop(); ?> file somewhere is not enough to get advantage of this; not referenced actions or submenus will just be displayed anywhere in the contextual menu.</li>
1169 <!-- ----------------------------------------------------------------------------- -->
1171 <h2 id="example-c">Appendix C. An example of an action</h2>
1174 In the following example, we define an "Open terminal here" action, which has three profiles. These profiles are thought to be able to open a suitable terminal in most situations. They are ordered, and so only the first profile whose conditions are met at runtime will be used in the file manager context menu.
1180 Name = Open terminal here
1181 Tooltip = Open a new terminal here
1183 Profiles = on_folder; on_file; on_desktop;
1185 [X-Action-Profile on_folder]
1186 Name = open a terminal on the current folder or on the selected folder
1187 MimeTypes = inode/directory;
1188 # note that this means strictly less than 2, as the equal sign is part of the DES syntax
1189 SelectionCount = < 2
1190 Exec = gnome-terminal --working-directory=%d
1192 [X-Action-Profile on_file]
1193 Name = open a terminal in the folder which contains selected items
1194 MimeTypes = all/allfiles;
1195 Exec = gnome-terminal --working-directory=$(echo %D | cut -d' ' -f1)
1197 [X-Action-Profile on_desktop]
1198 Name = open a terminal of the desktop
1199 Schemes = x-nautilus-desktop;
1200 Exec = gnome-terminal --working-directory=~/Desktop
1205 Note that this is only an example of how an action may be defined in a <?php desktop(); ?> file. It has not been deeply tested, and there is most probably more efficient ways of opening a terminal somewhere...
1208 <!-- ----------------------------------------------------------------------------- -->
1210 <h2 id="example-d">Appendix D. An example of a menu</h2>
1213 Say for the example that the action defined <?php this_url( "in previous appendix", "#example-c" ); ?> is saved as <?php code( "~/.local/share/file-manager/actions/open-terminal.desktop" ); ?> file.
1216 et define a menu which will embed this action. We will so create a second <?php desktop(); ?> file, with following content:
1223 Name = Terminal menu
1224 Tooltip = Some actions on terminals
1225 Icon = terminal-group
1226 ItemsList = open-terminal;
1231 This may be saved, e.g. as <?php code( "~/.local/share/file-manager/actions/menu-terminal.desktop" ); ?> file.
1234 <!-- ----------------------------------------------------------------------------- -->
1236 <h2 id="refs">References</h2>
1239 <li><a href="http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html" target="_blank">Desktop Entry Specification</a></li>
1240 <li><a href="http://standards.freedesktop.org/menu-spec/menu-spec-latest.html" target="_blank">Desktop Menu Specification</a></li>
1241 <li><a href="http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html" target="_blank">XDG Base Directory Specification</a></li>
1242 <li><a href="http://developer.kde.org/documentation/tutorials/dot/servicemenus.html" target="_blank">Creating Konqueror Service Menus</a></li>
1243 <li><a href="http://www.krusader.org/handbook/useractions.html" target="_blank">Krusader UserActions</a></li>
1244 <li><a href="http://thunar.xfce.org/pwiki/documentation/custom_actions" target="_blank">Thunar Custom Actions</a></li>
1247 <!-- ----------------------------------------------------------------------------- -->
1249 <h2 id="contributors">Contributors</h2>
1252 <li>Jonas Bähr</li>
1253 <li>David Faure</li>
1255 <li>Hong Jen Yee « PCMan »</li>
1256 <li>Michael Pyne</li>
1257 <li>Liam R. E. Quin</li>
1258 <li>Pierre Wieser</li>
1261 <!-- ----------------------------------------------------------------------------- -->
1263 <h2 id="changelog">ChangeLog</h2>
1267 <td align="center">Version</td>
1268 <td align="center">Date</td>
1273 <td align="center">0.1-draft</td>
1274 <td align="center">2009-12-07</td>
1279 <td align="center">0.2-draft</td>
1280 <td align="center">2009-12-17</td>
1282 - Move syntax considerations to a new "Desktop file" section.<br />
1283 - Add "Managed objects" section.<br />
1284 - Add "Defining menus" section.<br />
1285 - Deal with level zero items.<br />
1286 - Define a separate "Conditions" section.<br />
1287 - Remove "Rationales" section, moving comments to the corresponding key description.<br />
1288 - Remove <?php code( "Type" ); ?> key<br />
1289 - Remove all <?php code( "X-Action-" ); ?> prefix of the key names.<br />
1290 - Add needed keys in order to provider equivalent functionalities to KDE service menus.<br />
1291 - Current and extensions keys have been merged in the same table.<br />
1296 <td align="center">0.3-draft</td>
1297 <td align="center">2009-12-23</td>
1299 - No more talk about « extending », but rather of « deriving ».<br />
1300 - Replace « <a href="http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html" target="_blank"><acronym>fds</acronym></a> » acronym with « <?php DES(); ?> ».<br />
1301 - More clearly notice what this specification specifies, and what it doesn't specify.<br />
1302 - Move the « level-zero » case to a specific <?php this_url( "appendix", "#level-zero" ); ?>, as not a main part of this specification.<br />
1303 - Move rationales about the menu description to a specific <?php this_url( "appendix", "#menu-rationales" ); ?>.<br />
1304 - <?php code( "Comment" ); ?> key is renamed as <?php code( "Tooltip" ); ?> in menu and action definitions.<br />
1305 - Add <?php code( "Description" ); ?>, <?php code( "SuggestedShortcut" ); ?> keys to menu and action definitions.<br />
1306 - Add <?php code( "Path" ); ?>, <?php code( "StartupNotify" ); ?>, <?php code( "StartupWMClass" ); ?>, <?php code( "ForEach" ); ?> keys to profile definition.<br />
1307 - Remove <?php code( "SelectionCount" ); ?> key.<br />
1308 - Define available parameters.<br />
1309 - Create <?php this_url( "Contributors", "#contributors" ); ?> chapter.<br />
1310 - Create <?php this_url( "References", "#refs" ); ?> chapter.<br />
1315 <td align="center">0.4-draft</td>
1316 <td align="center">2010-01-07</td>
1318 - Remove <?php code( "ToolbarSameLabel" ); ?> action property.<br />
1319 - Add <?php code( "ExecuteAs" ); ?> profile property.<br />
1320 - Restore <?php code( "SelectionCount" ); ?> condition.<br />
1321 - Add myself as a <?php this_url( "contributor", "#contributors" ); ?>.<br />
1322 - Add a link to <?php this_url( "ChangeLog", "#changelog" ); ?>.<br />
1323 - Fix some links.<br />
1328 <td align="center">0.5-draft</td>
1329 <td align="center">2010-01-28</td>
1331 - Setup a default value for <?php code( "Path" ); ?> parameter.<br />
1332 - Update <?php this_url( "Contributors", "#contributors" ); ?>.<br />
1337 <td align="center">0.6-draft</td>
1338 <td align="center">2010-02-03</td>
1340 - Add <?php code( "Type" ); ?> key for distinguishing Actions from Menus.<br />
1341 - Specifies what to do with present, but not listed, profiles.<br />
1342 - Specifies defaults for <?php code( "TryExec" ); ?>, <?php code( "ShowIfRegistered" ); ?>, <?php code( "ShowIfTrue" ); ?>, <?php code( "ShowIfRunning" ); ?>, <?php code( "MimeTypes" ); ?>, <?php code( "SelectionCount" ); ?>, <?php code( "Schemes" ); ?>, <?php code( "Capabilities" ); ?> keys.<br />
1347 <td align="center">0.7-draft</td>
1348 <td align="center">2010-03-01</td>
1350 - Remove <?php code( "Minimized" ); ?> and <?php code( "Maximized" ); ?> from available <?php code( "ExecutionMode" ); ?> modes.<br />
1351 - Remove <?php code( "ForEach" ); ?> key<br />
1352 - <?php code( "Profiles" ); ?> and <?php code( "ItemsList" ); ?> become dynamic<br />
1353 - Remove <?php code( "GetItemsList" ); ?> key<br />
1354 - Change <?php code( "SelectionCount" ); ?> default from "<?php code( "*" ); ?>" to "<?php code( ">0" ); ?>"<br />
1355 - <?php code( "Folders" ); ?> elements may be negated<br />
1356 - Specify how to read a Conditions string list which contains both positive and negated elements<br />
1360 <td align="center">0.8-draft</td>
1361 <td align="center">2010-03-18</td>
1363 - Update the <?php code( "Profile" ); ?> and <?php code( "ItemsList" ); ?> keys description, describing their dynamic behavior.<br />
1364 - Update the <?php code( "Path" ); ?> key description, removing the word 'first'.<br />
1365 - Set the <?php code( "ItemsList" ); ?> key as requested.<br />
1366 - Specify the use of wildcards in <?php code( "MimeTypes" ); ?>, <?php code( "Basenames" ); ?> and <?php code( "Folders" ); ?> keys.<br />
1367 - The <?php code( "Folders" ); ?> key value is now defined as a list of paths.<br />
1368 - Update the <?php code( "Folders" ); ?> key description, describing SelectionCount-based behavior.<br />
1369 - More precisely describes parameters expansion against multiple selection.</br />
1370 - Create <?php this_url( "Appendix C", "#example-c" ); ?> with an example of an action.<br />
1371 - Specify the format of the <?php code( "SuggestedShortcut" ); ?> key.<br />
1372 - Change to ExtensionAction and ExtensionMenu the type of actions and menus.<br />
1377 <td align="center">0.9-draft</td>
1378 <td align="center">2010-03-25</td>
1380 - Define the <?php code( "TargetLocation" ); ?> key.<br />
1385 <td align="center">0.10-draft</td>
1386 <td align="center">2010-03-29</td>
1388 - <?php code( "Hidden" ); ?> and <?php code( "NoDisplay" ); ?> keys are moved to <?php code( "Desktop Entry" ); ?> group.<br />
1393 <td align="center">0.11-draft</td>
1394 <td align="center">2010-04-15</td>
1396 - Change back the <?php code( "Type" ); ?> of actions (resp. menus) to "<?php code( "Action" ); ?>" (resp. "<?php code( "Menu" ); ?>").<br />
1397 - Change the keyword "<?php code( "_SEPARATOR_" ); ?>" to "<?php code( "SEPARATOR" ); ?>".<br />
1398 - Add <?php this_url( "Appendix D", "#example-d" ); ?> with an example of a menu.<br />
1399 - Rename the "<?php code( "NoDisplay" ); ?>" keyword to "<?php code( "Enabled" ); ?>".<br />
1404 <td align="center">0.12-draft</td>
1405 <td align="center">2010-06-15</td>
1407 - Replace the "Same as DES" words by the exact relevant excerpt from DES, for <?php code( "Hidden" ); ?>, <?php code( "Exec" ); ?>, <?php code( "StartupNotify" ); ?>, <?php code( "StartupWMClass" ); ?>, <?php code( "OnlyShowIn/NotShowIn" ); ?> and <?php code( "TryExec" ); ?> keys.<br />
1408 - Change the <?php code( "Capabilities" ); ?>" default value from "<?php code( "*;" ); ?>" to the empty list.<br />
1409 - Specify that the <?php code( "Capabilities" ); ?>" conditions are ANDed.<br />
1414 <td align="center">0.13-draft</td>
1415 <td align="center">2010-08-04</td>
1417 - Slightly rewrite introduction.<br />
1418 - Improve consistency of the specification by replace « protocol » with « scheme », and « program » with « command ».<br />
1419 - Restates in relevant chapters that actions and menus may have their own set of conditions.<br />
1420 - Add a <?php this_url( "Building the whole hierarchy", "#hierarchy" ); ?> new chapter.<br />
1421 - add <?php code( "%m" ); ?> and <?php code( "%M" ); ?> parameters.<br />
1422 - Better specify which parameters can be used to determine between « singular » and « plural » forms, and define the default behavior when only « irrelevant » parameters are found.<br />
1423 - States which value must be used in parameter expansions in the case of a singular form.<br />
1424 - The condition defined by the <?php code( "TryExec" ); ?> key evaluates to <?php code( "false" ); ?> if the specified file is not found or is not executable, instead of the entry being ignored.<br />
1429 <td align="center">0.14-draft</td>
1430 <td align="center">2010-08-05</td>
1432 - Remove the (non-sense) states added in the previous version, about the value to be used in parameter expansions in the case of a singular form.<br />
1433 - Introduce more clearly the multiple execution algorythm.<br />