Registered Member
|
I've written the following test script after trying to get a dcop progress bar to work with kdialog under Kubuntu 8.10 and KDE4 in a much longer and more complex script.
#! /bin/bash dcopRef=$(kdialog --title "DCOP Progress" --progressbar "Initializing . . ." 12) echo $dcopRef dcop $dcopRef setProgress 1 dcop $dcopRef setLabel "Step 1" sleep 3 dcop $dcopRef setProgress 2 dcop $dcopRef setLabel "Step 2" sleep 3 dcop $dcopRef close Upon executing the script I get the following output. The dialog for the progress bar is created with the title shown above. org.kde.kdialog-7234 /ProgressDialog object not accessible object not accessible object not accessible object not accessible call failed I can get along without the progress bar, but it looks neater with it. Any thoughts greatly appreciated? TIA
Calgarian, proud to be a member of KDE forums since 2008-Nov.
|
Administrator
|
There is no such method as setProgress in kdialog.
shows me this:
|
KDE Developer
|
And the command should be qdbus, not dcop I guess it could be something like this
Cheers, _
anda_skoa, proud to be a member of KDE forums since 2008-Oct.
|
Administrator
|
Properties are not methods thus setting the progress will not work.
Try this instead:
As you can see you write properties by calling org.freedesktop.DBus.Properties.Set with the property path, name, and new value. You may wish to set the maximum property as well, so your script would end up looking like this:
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell