Skip to content

Add callDBus to Plasma Scripting

Tranter Madi requested to merge (removed):add-callDBus-to-scripting into master

- The idea is based on KWin Scripting's code.

- Test:

  1. execute this from Plasma Scripting Interactive Console:

    callDBus("org.kde.klauncher5", "/KLauncher", "", "exec_blind", "kate", {type:"s", value: []});

-> Kate runs.

  1. 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

Merge request reports

Loading