Zenity progress do not show progress and download speed

Bug #294498 reported by david_kt
2
Affects Status Importance Assigned to Milestone
Zenity
Invalid
Medium
zenity (Ubuntu)
Invalid
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: zenity

I am piping a download progress using below script:

wget -nd -c --read-timeout=300 --retry-connrefused --header "Accept-Encoding: gzip,deflate" http://www.tartet.com/target_file 2>&1 | sed -u 's/.*\ \([0-9]\+%\)\ \+\([0-9.]\+\ [KMB\/s]\+\)$/\1\n# Downloading \2/' | zenity --progress --auto-close --title="Downloading File..."

It works on Dapper and Hardy, but not on Intrepid. I have tried to downgrade from zenity 2.24.0 to zenity 2.22.1 (which is used in Hardy, I installed Hardy deb package on intrepid). As for the dependency, it removed rarian-compat and ubuntu-desktop meta package and installed scrollkeeper.

But it is still the same problem. Or maybe other packages in Intrepid or Gnome that cause this problem ?

David

Revision history for this message
Pedro Villavicencio (pedro) wrote :

confirmed the script shows the progress bar in Hardy but not in Intrepid, will look upstream thanks for reporting.

Changed in zenity:
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Pedro Villavicencio (pedro) wrote :

This bug has been reported to the developers of the software. You can track it and make comments here: http://bugzilla.gnome.org/show_bug.cgi?id=559759

Changed in zenity:
status: Confirmed → Triaged
Changed in zenity:
status: Unknown → New
Revision history for this message
Siegfried Gevatter (rainct) wrote :

The sed doesn't seem to do anything here. Have you checked that it's not the new wget version which changed the output format and broke your script?

Revision history for this message
david_kt (d-kuntadi) wrote :

Siegfried,
Thank you for your feedback and you are right. After I downgrade to wget 1.10.2, it works. So I edited the script as follow:

wget -nd -c --read-timeout=300 --retry-connrefused --header "Accept-Encoding: gzip,deflate" http://www.tartet.com/target_file 2>&1 | sed -u 's/.*\ \([0-9]\+%\)\ /\1\n# Downloading /' | zenity --progress --auto-close --title="Downloading File..."

The new script works with both wget 1.10.2 and the new one (wget 1.11.4).
Closing this bug.

DK

Revision history for this message
david_kt (d-kuntadi) wrote :

There is change in wget out put that break the script, not zenity.

Changed in zenity (Ubuntu):
status: Triaged → Invalid
Revision history for this message
andi5 (andi5) wrote :

Please do not forget to close the upstream bugs then, please.
Doing that right now.

Changed in zenity:
importance: Unknown → Medium
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.