https://bugs.kde.org/show_bug.cgi?id=450897
Bug ID: 450897 Summary: KWin JS script callDBus invalid signature Product: kwin Version: 5.24.2 Platform: Archlinux Packages OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: scripting Assignee: kwin-bugs-n...@kde.org Reporter: pendo3...@gmail.com Target Milestone: --- SUMMARY "callDBus" emitting an invalid signature. STEPS TO REPRODUCE 0. Have KLauncher plus Dolphin (or another testing app installed) 1. Write a KWin JS Script with the following content > callDBus("org.kde.klauncher5", "/KLauncher", "org.kde.KLauncher", > "exec_blind", "dolphin", new Array(), function(e) { print(e); }); 2. Execute the script (either through "plasma-interactiveconsole --kwin" or "kpackagetool5" and enabling) OBSERVED RESULT Nothing happens. EXPECTED RESULT Assuming dolphin is installed and in path, a Dolphin window should open. This works correctly when invoking via "qdbus": > qdbus org.kde.klauncher5 /KLauncher org.kde.KLauncher.exec_blind dolphin SOFTWARE/OS VERSIONS Linux Kernel Version: 5.16.11-arch1-1 KDE Plasma Version: 5.24.2 KDE Frameworks Version: 5.91.0 Qt Version: 5.15.2 ADDITIONAL INFORMATION After following the repro-script and then running the provided `qdbus` command with `dbus-monitor` open, I noticed that the method call looks almost the same for the two scenarios: working `qdbus` invocation: > method call time=1645911839.161296 sender=:1.73 -> > destination=org.kde.klauncher5 serial=361 path=/KLauncher; > interface=org.kde.KLauncher; member=exec_blind > string "dolphin" > array [ > ] not working KWin script / `callDBus` invocation: method call time=1645911778.904772 sender=:1.11 -> destination=org.kde.klauncher5 serial=1739 > path=/KLauncher; interface=org.kde.KLauncher; member=exec_blind > string "dolphin" > array [ > ] but the `callDBus` invocation then returns this error, while the working qdbus command just opens a Dolphin window: > error time=1645911778.904910 sender=:1.6 -> destination=:1.11 > error_name=org.freedesktop.DBus.Error.UnknownMethod reply_serial=1739 > string "No such method 'exec_blind' in interface 'org.kde.KLauncher' at > object path '/KLauncher' (signature 'sav')" This is my first time posting here, sorry if the formatting is bad. Also, sorry if this is in the wrong category. I tried searching for similar issues, but didn't really find any. -- You are receiving this mail because: You are watching all bug changes.