Autostart spec needs ordering

Jim Ramsay i.am at jimramsay.com
Mon Dec 10 08:28:28 PST 2007


I think the autostart spec needs some way of forcing one .desktop to
start only after another one has completed.  For example,
seahorse-agent requires that a ssh-agent be already running.

Perhaps this could be accomplished by adding two new keys:

- Requires key:
  - Contains a list of applications that MUST be started before this
    application may be executed.
  - If any of the listed applications have been disabled (via the
    Hidden key), missing (not currently in any autostart XDG
    directories), or fail to start up, this application MUST
    behave as if it were disabled.

- After key:
  - Contains a list of applications that MUST be started before this
    application may be executed
  - Unlike "Requires", if any of the listed applications are disabled,
    missing, or fail, this application may still be started.

The applications in these lists would be named by the
corresponding .desktop files, but without the '.desktop' suffix.  For
example, if there were 2 autostart files, one called
'seahorse-agent.desktop' and one called 'ssh-agent.desktop', the
seahorse-agent.desktop file would contain:

Requires=ssh-agent

-- 
Jim Ramsay
"Me fail English?  That's unpossible!"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/xdg/attachments/20071210/80eb4b1c/attachment.pgp 


More information about the xdg mailing list