desktop-packages team mailing list archive
-
desktop-packages team
-
Mailing list archive
-
Message #112393
[Bug 220656] Re: zenity --progress cancel button doesn't return a value
This error is still on Ubuntu 14.04 64 bit
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to zenity in Ubuntu.
https://bugs.launchpad.net/bugs/220656
Title:
zenity --progress cancel button doesn't return a value
Status in Zenity:
Invalid
Status in zenity package in Ubuntu:
Triaged
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/$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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/zenity/+bug/220656/+subscriptions