The source project of this merge request has been removed.
Add callDBus to Plasma Scripting
- The idea is based on KWin Scripting's code.
- Test:
-
execute this from Plasma Scripting Interactive Console:
callDBus("org.kde.klauncher5", "/KLauncher", "", "exec_blind", "kate", {type:"s", value: []});
-> Kate runs.
-
Show a notification:
callDBus("org.freedesktop.Notifications", "/org/freedesktop/Notifications", "", "Notify", "Plasa Scripting", {type:"u", value: 0}, "", "Hello", "Is it kool?", {type: "s", value:["okBtn", "OK", "cancelBtn", "Cancel"]}, {}, 5000, function() { print("ok"); });
Edited by Tranter Madi