Use platform detection from KWorkspace in Powerdevil
Summary: On a wayland session powerdevil needs to use Wayland platform.
Test Plan:
Only compile tested, changes are identical to the tested
systemsettings patch.
Reviewers: Plasma
Subscribers: plasma-devel
Tags: Plasma
Differential Revision: https://phabricator.kde.org/D11446