[Portland] Patch to xdg-su

Bastian, Waldo waldo.bastian at intel.com
Tue Apr 11 04:20:16 EEST 2006


>-----Original Message-----
>From: portland-bounces at lists.freedesktop.org [mailto:portland-
>bounces at lists.freedesktop.org] On Behalf Of Kevin Krammer
>Sent: Monday, April 10, 2006 3:34 PM
>To: portland at lists.freedesktop.org
>Subject: Re: [Portland] Patch to xdg-su
>
>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.

Yes, looks good.

Cheers,
Waldo



More information about the Portland mailing list