Im trying to make my first bash script and im trying to use kdialog .
How do i make the progress bar a certain width here is my attempt
dbusRef=`kdialog --title "Sweet As Buckup Demon" --progressbar "Initializing" 8`
qdbus $dbusRef Set "" value 1
qdbus $dbusRef setLabelText "Getting web site folder and creating mysqldump and grabbing configuration files from the apache Server"
cp -rf /usr/local/websites/sweetassurfwear /home/brett/sweetback/
sleep 4
qdbus $dbusRef Set "" value 2
cd /home/brett/sweetback/
And so on.. if you need the entire script i will post it
Basically at each part of the process it out puts text on the progress bar but the dialog keeps changing width.
How do i make the size standard
Use the --geometry
argument, e.g.
kdialog --geometry 300x300+300+300 --title "Sweet As Buckup Demon" --progressbar "Initializing"
You can see the documentation for this option by typing:
kdialog --help-all|grep geometry