[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Test for cancel event on kdesu (perl)
From: "Mark A. Taff" <marktaff () comcast ! net>
Date: 2005-02-24 9:22:51
Message-ID: 200502240122.51411.marktaff () comcast ! net
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
On Wednesday 23 February 2005 23:35, Mark A. Taff wrote:
> How can I test for a cancel button click in the kdesu dialog in perl?
>
> Current code:
>
> open(KDESU, "| $kdesu_command") or die "$ERROR $NO_KDESU_ERR $!";
> print KDESU "$kdesu_command" or die "$ERROR $KDESU_EXEC_ERR $!";
> close(KDESU);
>
> /code
> I know I could find the answer given time, but I'm in a hurry to get this
> fixed for a very frustrated user, so I ask the list's kind forgiveness for
> me not doing all my own homework this time. Thanks guys (and gals).
>
> Many thanks,
As a followup, kdesu seems to return 0 when either ok or cancel is pressed.
Thanks.
--
Mark A. Taff
[Attachment #5 (application/pgp-signature)]
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic