[Bug 220656] Re: zenity --progress cancel button doesn't return a value

2015-04-12 Thread cpcbegin
This error is still on Ubuntu 14.04 64 bit

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/220656

Title:
  zenity --progress cancel button doesn't return a value

To manage notifications about this bug go to:
https://bugs.launchpad.net/zenity/+bug/220656/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 220656] Re: zenity --progress cancel button doesn't return a value

2010-09-16 Thread Bug Watch Updater
** Changed in: zenity
   Importance: Unknown = Medium

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 220656] Re: zenity --progress cancel button doesn't return a value

2010-07-28 Thread Bug Watch Updater
** Changed in: zenity
   Status: Unknown = Invalid

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 220656] Re: zenity --progress cancel button doesn't return a value

2009-10-23 Thread Locke
The mentioned script kludges aren't always an acceptable method to
workaround this problem. We need a patch to zenity to allow proper
functionality. (return suitable error status when cancel button is
used.)

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 220656] Re: zenity --progress cancel button doesn't return a value

2009-08-18 Thread Pedro Villavicencio
** Changed in: zenity (Ubuntu)
   Status: Confirmed = Triaged

** Also affects: zenity via
   http://bugzilla.gnome.org/show_bug.cgi?id=591118
   Importance: Unknown
   Status: Unknown

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 220656] Re: zenity --progress cancel button doesn't return a value

2009-08-07 Thread Jean-Philippe Fleury
Done: http://bugzilla.gnome.org/show_bug.cgi?id=591118

** Bug watch added: GNOME Bug Tracker #591118
   http://bugzilla.gnome.org/show_bug.cgi?id=591118

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 220656] Re: zenity --progress cancel button doesn't return a value

2009-08-05 Thread Pedro Villavicencio
Could somebody send this upstream at bugzilla.gnome.org ? Thanks.

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 220656] Re: zenity --progress cancel button doesn't return a value

2009-07-23 Thread marco murakami
I don't know if this issue is solve but i have made a script using
zenity progress fully functional.

The script makes a backup file. The progress bar also works fine, it
shows the exact percentage of the copy and if you press the cancel
button close the zenity window and kill the copy process.  I hope this
would help to someone.

Here's a copy of the code i wrote.

#!/bin/bash

fuente=~/.VirtualBox/XP.vdi
destino=~/.VirtualBox/XP.vdi.backup

size=$(ls -l ~/.VirtualBox/XP.vdi | awk '{print $5}')
copy=0
cp $fuente $destino 
while [ $copy -lt $size ]
do
sleep 1
porcentaje=$( echo scale = 5 ; $copy / $size * 100  | bc )
echo #Copiando $copy bytes.Tamaño total: $size bytes.
echo $porcentaje
copy=$(ls -l $destino | awk '{print $5}')
done | zenity --progress --width=350 --title='Creando XP.vdi.backup'

if [ $? = 1 ] ; then
pidC=$(pidof cp)
kill $pidC
rm -v $destino
zenity --info --width=300 height--200 --title=Borrar Backup 
--text=El proceso numero $pidC ha sido destruido.\n\nEl archivo $destino ha 
sido borrado.
fi

P.D. I'm from Mexico, thats why the labels and the variable's names are
in spanish. Hope doesn't matter.

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 220656] Re: zenity --progress cancel button doesn't return a value

2009-05-14 Thread UnLuckyLuKE
Hi everybody, I had the same problem with my bash scripts, so I try to find out 
some solutions.
This is worked for me in Ubuntu Intrepid Ibex

my_app | (if `zenity --progress --auto-close --text='In progress' --title='In 
progress'`;
 then
 echo 'Job completed'
 else
 killall my_app
 exit
 fi)

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 220656] Re: zenity --progress cancel button doesn't return a value

2009-05-14 Thread UnLuckyLuKE
Sorry, I just realized I pasted the rough copy... Please ignore my
previous post.


Hi everybody, I experienced the same problem in my bash scripts, and I
tried to find out a workaround. The following bash code worked for me in
Ubuntu Intrepid Ibex:

foo | (if `zenity --progress --auto-close --text='In progress' --title='In 
progress'`;
 then
 echo 'Job completed'
 else
 killall `basename $0`
 exit
 fi)

Hope this helps!

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 220656] Re: zenity --progress cancel button doesn't return a value

2009-04-18 Thread beefcurry
this zenity bug is still present in Jaunty Release Candidate.

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 220656] Re: zenity --progress cancel button doesn't return a value

2009-04-16 Thread rumi
Try the solution without running in background and checking zenity is
still working.

It seems echo command exits the loop when application reading the pipe
is closed.

(while true; do
   echo `tail percentage_file`
   sleep 3;
done) | zenity --progress

Trick with echo resolves cancel button support.
Please confirm it works for you.

brgds
rumi

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 220656] Re: zenity --progress cancel button doesn't return a value

2009-03-28 Thread Siegfried Gevatter (RainCT)
Zenity should be returning an error code if the users presses Cancel on
the progress dialogue.

{{{
case GTK_RESPONSE_CANCEL:
   [autokill stuff... ]
   zen_data-exit_code = zenity_util_return_exit_code (ZENITY_CANCEL);
   break;
}}}

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 220656] Re: zenity --progress cancel button doesn't return a value

2009-01-28 Thread Nick Bauermeister
I am reopening this, since it has not been fixed in the application itself.
I consider this a major flaw in zenity as there seems to be no proper way (I'm 
trying for hours) to work around this.

bodhi.zazen's workaround is – I'm sorry to say – actually pretty bad, since it 
consumes CPU for no reason at all with that loop.
Additionally killing EVERY instant of the respective process can not be 
considered a sensible solution.

What if the user has other instances running? Take wget for example:
killing wget completely will terminate all downloads the user may have
already running.

** Changed in: zenity (Ubuntu)
   Status: Fix Released = Confirmed

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 220656] Re: zenity --progress cancel button doesn't return a value

2009-01-07 Thread Jean-Philippe Fleury
Hi,

Say I have this script:

#! /bin/bash
cd $HOME
tar xvfz zzz.tar.gz | zenity --progress --pulsate --auto-close --auto-kill 
--title=Test --text=Test

If I click on the Cancel button of the progress bar, the tar command
still runs. Only the parent script is closed, but not the children
processes. I'm on Ubuntu 8.10.

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 220656] Re: zenity --progress cancel button doesn't return a value

2008-09-29 Thread Pedro Villavicencio
works also fine for me, marking this as fix released, thanks for
reporting.

** Changed in: zenity (Ubuntu)
   Status: Incomplete = Fix Released

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 220656] Re: zenity --progress cancel button doesn't return a value

2008-09-18 Thread Cesare Tirabassi
This works for me on Intrepid. Anybody else can confirm or otherwise?

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 220656] Re: zenity --progress cancel button doesn't return a value

2008-07-26 Thread Rudolf Adamkovič
I can agree.

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 220656] Re: zenity --progress cancel button doesn't return a value

2008-06-14 Thread bodhi.zazen
This looks like an old report, but I ran into the same type of issue.

I do not have a solution, but an ugly hack to test if zenity is running
and if not kill the children processes.

That statement just looks wrong o.O

At any rate ...

Take a command foo ...

foo | zenity --progress --auto-kill  # Need to add an  at the end so the 
script continues.
RUNNING=0
while [ $RUNNING - eq 0 ]
do
 if [ -z $(pidof zenity) ] ; then
pkill foo # You may need to kill -9 `pidof foo`
RUNNING=1
fi
done

NOTE : this just kills the children precesses, you may also want to
clean up after them (remove temp files ...)

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 220656] Re: zenity --progress cancel button doesn't return a value

2008-05-15 Thread dpurple77
Yes it appears so.

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 220656] Re: zenity --progress cancel button doesn't return a value

2008-05-13 Thread Pedro Villavicencio
thanks for your report, is this still an issue on hardy?

** Changed in: zenity (Ubuntu)
   Importance: Undecided = Low
 Assignee: (unassigned) = Ubuntu Desktop Bugs (desktop-bugs)
   Status: New = Incomplete

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs