When I type : kdialog --progressbar "Whatever" Nothing dialog appear. I get only DBus reference in output from terminal. but access to this reference with qdbusviewer crash Qdbusviewer. I have see this bug on several distros. kdialog --version Qt: 5.5.1 KDE Frameworks: 5.19.0 KDialog: 1.0
I can confirm this bug in Opensuse Tumbleweed and would appreciate a fix
Created attachment 103095 [details] Attempted fix; does not work I tried adding KDBusService(Multiple) before printing the connection name, but it did work. tests/progressdemo says Path 'org.kde.kdialog.ProgressDialog' is not a valid path name. Needs someone with understanding QDBus to fix it.
I can confirm this is a recent bug, as for Plasma 5.8.0 it did work. I observe it with Mageia Cauldron for at most one month.
Using KDE Neon dev unstable edition here and kdialog progressbar does not seem to be visible to qdbus. I tried to look and fix the code but can't get it even visible to qdbus.
OK it looks like the fork() call is causing dbus to not work. If I comment out the fork portion and also add KDBusService as attempted by Christoph the dialog becomes visible and is operable by qdbus commands. But it does not hide or go into background of course, so some other approach is needed than fork. I also came across another project bug which might imply fork() is not safe with QDBus code: https://github.com/mumble-voip/mumble/issues/2820
Fixed by David Faure. https://commits.kde.org/kdialog/d72ab46df8879024cda620beec9da71a674873dc