https://bugs.kde.org/show_bug.cgi?id=433333
David Edmundson <k...@davidedmundson.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDSINFO |CONFIRMED Resolution|WAITINGFORINFO |--- Ever confirmed|0 |1 --- Comment #8 from David Edmundson <k...@davidedmundson.co.uk> --- Urgh, found it. bool hasSystemdService(QString) doesn't work as intended. In the correct case: qdbus --literal org.freedesktop.systemd1 /org/freedesktop/systemd1 org.freedesktop.systemd1.Manager.ListUnitsByNames xdg-desktop-autostart.target I get a blob as expected: [Argument: a(ssssssouso) {[Argument: (ssssssouso) "xdg-desktop-autostart.target", "Startup of XDG autostart applications", "loaded", "active", "active", "", [ObjectPath: /org/freedesktop/systemd1/unit/xdg_2ddesktop_2dautostart_2etarget], 0, "", [ObjectPath: /]]}] ------ In testing I had used a random string: qdbus --literal org.freedesktop.systemd1 /org/freedesktop/systemd1 org.freedesktop.systemd1.Manager.ListUnitsByNames randomMissingService [Argument: a(ssssssouso) {}] which returns an empty array. In this function I test for an empty array, thinking that was a nice quick and safe solution. ------ In practice, if something is well formed, what I get is: qdbus --literal org.freedesktop.systemd1 /org/freedesktop/systemd1 org.freedesktop.systemd1.Manager.ListUnitsByNames randomMissingService.service [Argument: a(ssssssouso) {[Argument: (ssssssouso) "randomMissingService.service", "randomMissingService.service", "not-found", "inactive", "dead", "", [ObjectPath: /org/freedesktop/systemd1/unit/randomMissingService_2eservice], 0, "", [ObjectPath: /]]}] -- You are receiving this mail because: You are watching all bug changes.