dcop issues with progressbar (SOLVED)
Thanks to a couple of replies to this I was able to get the following script to work. First some comments. I am very new at this level of scripting and my research all led me to dcop answers, up to and including September of this year dated material. I was completely unaware that dbus had replaced dcop. One of the replies got the setLabelText process working and pointed me towards the Set value function. Some additional playing and searching finally got the answer for me. Thanks to the guys who helped.
#! /bin/bash
dbusRef=$(kdialog --title "DCOP Progress" --progressbar "Initializing . . ." 2)
#echo $dbusRef
qdbus $dbusRef org.kde.kdialog.ProgressDialog.setLabelText "Step 1"
qdbus $dbusRef Set org.kde.kdialog.ProgressDialog value 1
sleep 3
qdbus $dbusRef org.kde.kdialog.ProgressDialog.setLabelText "Step 2"
qdbus $dbusRef Set org.kde.kdialog.ProgressDialog value 2
sleep 3
qdbus $dbusRef org.kde.kdialog.ProgressDialog.close
|