Public bug reported:

Binary package hint: zenity

On Gutsy with zenity 2.20.0-0ubuntu1 there is no code returned when the
cancel button is clicked. There is an option --auto-kill that kills the
parent process when used but that doesn't kill any child processes that
may have started already and without the --auto-kill option nothing gets
returned on the cancel button press so there is no way to handle the
button press and kill the processes manually.

Example code :

mknod /tmp/pipe$$ p
        shntool split -f "$1" -o 'cust ext=mp3 lame --quiet - %f' -t "%n - %t" 
-d "$DirName" "$DirName/$FileName" \
        &> /tmp/pipe$$ | \
        (zenity --progress --pulsate --text="Splitting $FileName.\n Please wait 
until OK is active.") \
        < /tmp/pipe$$
        echo "$?"
rm /tmp/pipe$$


This code uses shntool to split an ape file based on its cue file which calls 
lame (for mp3 creation) and mac (for the ape file handling) as children 
processes. If the --auto-kill argument is used the program gets killed but the 
children processes lame and mac keep running. If not , cancel doesn't do 
anything at all. $? echoes 0 when everything is finished and ok is pressed.

** Affects: zenity (Ubuntu)
     Importance: Undecided
         Status: New

-- 
zenity --progress cancel button doesn't return a value
https://bugs.launchpad.net/bugs/220656
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to