Actions extensions in File Manager - Multiple invocation
pwieser at trychlos.org
Tue Mar 2 08:57:51 PST 2010
> De: "David Faure" <faure at kde.org>
> Envoyé: Vendredi 26 Février 2010 11:51:23
> > - what should we do when we have e.g. 'echo %d %X' ?
> Good question, but I don't think this example makes sense :-)
> Either you want one invocation per selected file, or you want one invocation
> with all selected files...
> The rule we use is "the app supports multiple files/urls if %F, %U, %D or %N is
> in the Exec line". %X would obviously be added to that list for this spec. So
> I guess the result in practive for %d %X (or %d %F, etc.) would be that the
> first arg would be the first (i.e. a random) directory...
> How about we actually add the rule to the spec? [ideally in both specs...]
> "If multiple files are selected, the application is invoked once per file,
> unless its Exec line contains %F, %U, %D, %N or %X"
Why even do we should choose between the two invocation modes ?
If we consider that mixing single parameters with multiple ones doesn't
make sense, we may just say that this is a syntax error and that the
implementation may safely ignore these parameters
More information about the xdg