Why utilise KDOTool versus QDBus?

As an example, are qdbus-qt6 org.kde.kglobalaccel /component/kwin invokeShortcut "Window Close" [1] and kdotool windowclose $(kdotool getactivewindow) 1:1 equivalent?


  1. chatgpt.com/s/t_69503e9f50508191ab4e619a50de6c05 [2] ↩︎

  2. chatgpt.com/c/69500ea8-7a3c-8333-af4b-84e48af3d421 ↩︎

kdotool talks to KWin using the KWin Scripting API which can do more things that are not possible with the KWin DBus API

1 Like