In System Settings > Workspace Behavior > Touch Screen: allow to execute user defined commands / scripts (e.g. qdbus).