<table><tr><td style="">graesslin created this revision.<br />graesslin added a reviewer: KWin.<br />Herald added a project: KWin.<br />Herald added a subscriber: kwin.<br />graesslin requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D22209">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>One of the biggest security issues on X11 was that any application could<br />
take screenshots. On Wayland we addressed this by making the screenshot<br />
process interactive. The user has to confirm explicitly that a<br />
screenshot is taken. But our API still allows to create a screenshot and<br />
save it directly to a temporary file. It shows a notification, but<br />
nevertheless it is a small security issue.</p>

<p>Thus this change addresses it by sending a dbus error in case the<br />
methods are called on Wayland.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Run nested session before and after change and used qdbusviewer<br />
to call screenshot. Before path was returned, after change no path was returned.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R108 KWin</div></div></div><br /><div><strong>BRANCH</strong><div><div>screenshot-unsupported-wayland</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D22209">https://phabricator.kde.org/D22209</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>effects/screenshot/screenshot.cpp</div></div></div><br /><div><strong>To: </strong>graesslin, KWin<br /><strong>Cc: </strong>kwin, LeGast00n, sbergeron, jraleigh, fbampaloukas, GB_2, mkulinski, ragreen, jackyalcine, Pitel, iodelay, crozbo, bwowk, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas, apol, mart<br /></div>