Skip to content

shell/scripting: add imageSource to containment

Fushan Wen requested to merge work/fuf/script/imagesource into master

This allows to get the screenshot of a containment from DBus scripts.

CCBUG: 449823

Test: run /usr/lib64/qt5/bin/qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.evaluateScript 'print(desktopsForActivity(currentActivity())[0].imageSource)' or /usr/lib64/qt5/bin/qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.evaluateScript 'print(desktopsForActivity(currentActivity())[1].imageSource)'

@tantalising

Edited by Fushan Wen

Merge request reports

Loading