[Portland] Patch to xdg-su

Kevin Krammer kevin.krammer at gmx.at
Tue Apr 11 01:33:36 EEST 2006


On Saturday 08 April 2006 21:18, Kevin Krammer wrote:
> On Friday 31 March 2006 09:43, Bastian, Waldo wrote:
> > I have added the changes to CVS.
> >
> > I think the scripts should take full care of command line parsing and
> > the return values. So it shouldn't pass command line options to the
> > native method (e.g. kdesu or gnomesu in this case) if those command line
> > options aren't documented as such in the documentation of the xdg-*
> > script. Like wise, the script should generate its own return values and
> > define what all return values mean.
>
> Good point!
>
> To collect and discuss standard return values I'll start with some:
>
> 0 -> success (obviously)
>
> 1 -> wrong number of arguments, usage gets printed
>
> 2 -> malformed argument in cases where the script can determine that
>
> 3 -> operation not possible, i.e. necessary delegate application not
> available
>
> 4 -> operation failed, i.e delege application returned != 0

I implemented this in the form of common exit function in xdg-utils-common and 
use them in xdg-mime as a showcase

If there is no rejection I'll change the other scripts accordingly.

Cheers,
Kevin

-- 
Kevin Krammer <kevin.krammer at gmx.at>
Qt/KDE Developer, Debian User
Moderator: www.mrunix.de (German), www.qtcentre.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/portland/attachments/20060411/5a2f45f4/attachment.pgp


More information about the Portland mailing list