Decide to use the wayland backend by looking at XDG_SESSION_TYPE

Authored by fvogt on Mar 24 2018, 6:21 PM.

Description

Decide to use the wayland backend by looking at XDG_SESSION_TYPE

Summary:
With plasma-workspace master, QT_QPA_PLATFORM is no longer set,
so spectacle runs with the xcb platform plugin.

Test Plan: Installed, can take screenshots on wayland again.

Reviewers: Spectacle, graesslin

Differential Revision: https://phabricator.kde.org/D11655

Details