zenity --progress cancel button doesn't return a value
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zenity |
Invalid
|
Medium
|
|||
zenity (Ubuntu) |
Triaged
|
Low
|
Ubuntu Desktop Bugs |
Bug Description
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/
&> /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.
Changed in zenity (Ubuntu): | |
status: | Confirmed → Triaged |
Changed in zenity: | |
status: | Unknown → Invalid |
Changed in zenity: | |
importance: | Unknown → Medium |
thanks for your report, is this still an issue on hardy?