<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hi Jan,</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I have searched for files with that name and found following:<br>
<br>
<span style="font-family:monospace"><span style="color:#000000; background-color:#ffffff">/usr/share/xdg-desktop-portal-kde
</span><br>
/usr/share/lintian/overrides/xdg-desktop-portal-kde <br>
/usr/share/doc/xdg-desktop-portal-kde <br>
/usr/lib/x86_64-linux-gnu/libexec/xdg-desktop-portal-kde<br>
</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
The first and third are directories, the fourth is a library. I've added the string you mentioned to the second file but the behavior seems to be the same. Did you mean a different file?<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Regards,</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Damir</div>
<div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> kde-devel <kde-devel-bounces@kde.org> on behalf of Jan Grulich <jgrulich@redhat.com><br>
<b>Sent:</b> Monday, October 19, 2020 07:34<br>
<b>To:</b> kde-devel@kde.org <kde-devel@kde.org><br>
<b>Subject:</b> Re: Not able to take screenshots with KDE Plasma 5.20.80</font>
<div> </div>
</div>
<div>
<div dir="ltr">Hi,
<div><br>
</div>
<div>can you try to add "<span style="background-color:rgba(71,87,120,0.1); color:rgb(0,0,0); font-family:monospace; font-size:13px; white-space:pre-wrap">X-KDE-DBUS-Restricted-Interfaces=org.kde.kwin.Screenshot"
</span>into the xdg-desktop-portal-kde desktop file and restart it?</div>
<div><br>
</div>
<div>Regards,</div>
<div>Jan</div>
</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">ne 18. 10. 2020 v 22:50 odesílatel Damir Porobic <<a href="mailto:damir_porobic@live.com">damir_porobic@live.com</a>> napsal:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hello,</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
anyone any feedback on this one? Kind of breaks all non KDE Screenshot tools under Wayland.<br>
Would be nice to know if this is by error or some additional steps are required now.</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Best regards,<br>
Damir</div>
<div>
<div id="x_gmail-m_-1444322107517902556appendonsend"></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr style="display:inline-block; width:98%">
<div id="x_gmail-m_-1444322107517902556divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Damir Porobic <<a href="mailto:damir_porobic@live.com" target="_blank">damir_porobic@live.com</a>><br>
<b>Sent:</b> Wednesday, October 14, 2020 21:34<br>
<b>To:</b> <a href="mailto:kde-devel@kde.org" target="_blank">kde-devel@kde.org</a> <<a href="mailto:kde-devel@kde.org" target="_blank">kde-devel@kde.org</a>><br>
<b>Subject:</b> Re: Not able to take screenshots with KDE Plasma 5.20.80</font>
<div> </div>
</div>
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Seems to be related to this change here <a href="https://phabricator.kde.org/D29407" id="x_gmail-m_-1444322107517902556LPlnk" target="_blank">https://phabricator.kde.org/D29407</a></div>
<div></div>
<br>
<div>
<div id="x_gmail-m_-1444322107517902556x_appendonsend"></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Also, I see the same error when using <span style="font-family:Calibri,Helvetica,sans-serif; background-color:rgb(255,255,255); display:inline">org.freedesktop.portal.Screenshot which requires already confirmation by default so I'm bit confused why both, authorization
 and confirmation? Also, looking quickly through the discussion I haven't found any clue how a non KDE application could get access to those screenshot interfaces.</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="font-family:Calibri,Helvetica,sans-serif; background-color:rgb(255,255,255); display:inline"><br>
</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="font-family:Calibri,Helvetica,sans-serif; background-color:rgb(255,255,255); display:inline">Best regards,</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="font-family:Calibri,Helvetica,sans-serif; background-color:rgb(255,255,255); display:inline">Damir</span></div>
<hr style="display:inline-block; width:98%">
<div id="x_gmail-m_-1444322107517902556x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> kde-devel <<a href="mailto:kde-devel-bounces@kde.org" target="_blank">kde-devel-bounces@kde.org</a>> on behalf
 of Damir Porobic <<a href="mailto:damir_porobic@live.com" target="_blank">damir_porobic@live.com</a>><br>
<b>Sent:</b> Wednesday, October 14, 2020 21:22<br>
<b>To:</b> <a href="mailto:kde-devel@kde.org" target="_blank">kde-devel@kde.org</a> <<a href="mailto:kde-devel@kde.org" target="_blank">kde-devel@kde.org</a>><br>
<b>Subject:</b> Not able to take screenshots with KDE Plasma 5.20.80</font>
<div> </div>
</div>
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hello,</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
one of my users informed me that he's not able to take screenshots with KDE Plasma Wayland anymore. I've just tested myself, with Plasma 5.19.5 everything is working, with Plasma 5.20.80, it's not. My application supports two ways of taking screenshots under
 KDE Plasma, one is using "org.kde.kwin.Screenshot" like Spectacle and the other is using "org.freedesktop.portal.Screenshot". Interesting is that both stopped working with 5.20.80 but Spectacle seems to be able to take screenshot still. My imageGrabber that
 uses "<span style="font-family:Calibri,Helvetica,sans-serif; background-color:rgb(255,255,255); display:inline">org.kde.kwin.Screenshot" is basically a copy of Spectacles imageGrabber, so I'm wondering why it works for Spectacle and not for my application. </span></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="font-family:Calibri,Helvetica,sans-serif; background-color:rgb(255,255,255); display:inline"><br>
</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="font-family:Calibri,Helvetica,sans-serif; background-color:rgb(255,255,255); display:inline">Looking at the dbus-monitor sessions, I've notices an error saying:<br>
error_name=org.kde.kwin.Screenshot.Error.NoAuthorized reply_serial=32 string "The process is not authorized to take a screenshot" </span></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="font-family:Calibri,Helvetica,sans-serif; background-color:rgb(255,255,255); display:inline"><br>
</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="font-family:Calibri,Helvetica,sans-serif; background-color:rgb(255,255,255); display:inline">That's something new. How can a process be authorized to take screenshots? </span></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="font-family:Calibri,Helvetica,sans-serif; background-color:rgb(255,255,255); display:inline"><br>
</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="font-family:Calibri,Helvetica,sans-serif; background-color:rgb(255,255,255); display:inline">Regards,</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="font-family:Calibri,Helvetica,sans-serif; background-color:rgb(255,255,255); display:inline">Damir</span>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr" class="x_gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<p style="margin-top: 0px; margin-bottom: 0px;margin:0px">Jan Grulich,</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin:0px">Senior Software Engineer, Desktop Team</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin:0px">Red Hat</p>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>