Add getSelectedItems, callable via dbus
This commit makes it possible to create global hotkey for ServiceMenus.
Example script to open a new konsole window for every selected folder of the active (if it exists) dolphin window:
dolphins=$(qdbus org.kde.dolphin-*)
for i in $dolphins; do
if [[ "$(qdbus $i /dolphin/Dolphin_1 Get org.qtproject.Qt.QWidget isActiveWindow)" == true ]]; then
readarray -t x <<<"$(qdbus $i /dolphin/Dolphin_1 getSelectedItems)"
for j in "${x[@]}"; do [[ -d "${j:7}" ]] && konsole --workdir "${j:7}" & done
fi
done