Desktop Entry Specification - ExecuteAs proposition
David Faure
faure at kde.org
Tue Mar 9 14:22:25 PST 2010
On Sunday 07 March 2010, Matthias Clasen wrote:
> On Mon, 2010-03-08 at 01:25 +0800, PCMan wrote:
> > Agree. This need to be supported by the spec, but in the spec we can
> > clearly recommend more sophisticated approaches like policykit and
> > discourage the use of this key if better alternative exists.
> > In this way, we don't promote the improper use of privilege elevation.
> > Nor do we prevent developers who really need this from using it. The
> > point is not sudo is good or not, but those who really need this
> > feature should be able to use it given they don't find better
> > alternatives for their cases.
>
> I don't think anything needs to be added to the spec. The spec gives you
> a full exec line, you can use it to exec gksudo or use a console-helper
> approach or polkit or any other mechanism you like. No need to add dead
> weight to the spec for this.
But this forces a particular gui program (gksudo or kdesu etc.)
whereas ExecuteAs=root is more generic (you get your desktop's usual
gui-su-program rather than a hardcoded one).
--
David Faure, faure at kde.org, http://www.davidfaure.fr
Sponsored by Nokia to work on KDE, incl. Konqueror (http://www.konqueror.org).
More information about the xdg
mailing list