Re: qdbus - is this still working in 5.19?

Wolfgang Bauer <[email protected]> Fri, 12 Jun 2020 19:36:59 +0200
Newsgroups gmane.linux.suse.kde
Message-ID <[email protected]>
Am Freitag, 12. Juni 2020, 17:15:08 schrieb Ianseeks:
> dbusRef=`kdialog --progressbar "Starting Back up procedure" 4`
> sleep 1
> qdbus $dbusRef Set "Starting Back up procedure" value 1
> rsync ......
> qdbus $dbusRef Set "" value 1
> qdbus $dbusRef setLabelText "1.4. Backing up /home/me/Documents"
> 
So you are in fact using kdialog, and try to update its progressbar and text 
later on via D-BUS. ;-)

This is wrong though:
$ qdbus $dbusRef Set "Starting Back up procedure" value 1
Error: org.freedesktop.DBus.Error.UnknownInterface
Interface Starting Back up procedure was not found in object /ProgressDialog

It should probably be just:
$ qdbus $dbusRef value 1
(or whatever value you want to set)

The setLabelText line should be fine though.

Although, as mentioned, you'd probably better use qdbus-qt5 instead.

Kind Regards,
Wolfgang

-- 
To unsubscribe, e-mail: [email protected]
To contact the owner, e-mail: [email protected]