[Portland] Patch to xdg-su
waldo.bastian at intel.com
Tue Apr 11 04:20:16 EEST 2006
>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
>> > 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
>> > options aren't documented as such in the documentation of the xdg-*
>> > script. Like wise, the script should generate its own return values
>> > 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
>> 4 -> operation failed, i.e delege application returned != 0
>I implemented this in the form of common exit function in
>and use them in xdg-mime as a showcase
>If there is no rejection I'll change the other scripts accordingly.
Yes, looks good.
More information about the Portland