문제

Currently developing a small bash script, my needs are a progress bar that doesn't come with a cancel button. I have been looking into the zenity progress bar, but haven't found a way to get rid of the cancel button.

The non-existence of the cancel button is of the essence, since it would completely ruin the means of the progress bar. I saw a terminal-based progress bar around, but since I use zenity dialogs for all other cases, I want to use it for the progress bar as well.

Any idéas how to solve my issue? Any other progress bars around, or is it possible to get rid of the cancel button?

Any help is very appreciated, thanx!

도움이 되었습니까?

해결책

zenity supports the --no-cancel flag, which removes the cancel button.

For me information see zenity --help-progress.

다른 팁

Try this,

sleep 5|tee >(zenity --progress --pulsate --no-cancel --auto-close --text="Please wait...")
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top