Bug 489240

Summary: Screen sharing permission keeps appearing and disappearing at random when Remote Desktop server (KRDP) is running
Product: [Plasma] xdg-desktop-portal-kde Reporter: me
Component: generalAssignee: Plasma Bugs List <plasma-bugs-null>
Status: REOPENED ---    
Severity: normal CC: ahiemstra, akselmo, aleixpol, bugs.kde.org, jgrulich, kde, nate
Priority: NOR    
Version First Reported In: 6.1.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description me 2024-06-26 14:26:29 UTC
SUMMARY
Every once in a while the portal dialog that asks for screen sharing permission keeps appearing and disappearing a bunch of times stealing focus from my current application. This happens if you have the Remote Desktop server (KRDP) running.

STEPS TO REPRODUCE
1. Enable the Remote Desktop server;
2. Wait for those random intervals.

OBSERVED RESULT
The permission dialog appears and disappears a bunch of times at random times.

EXPECTED RESULT
The permission should persist properly, so the dialog should not appear at all.

SOFTWARE/OS VERSIONS
Linux: EndeavourOS
(available in About System)
KDE Plasma Version: 6.1.0
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.1

ADDITIONAL INFORMATION
Video showing this bug happening: https://0x0.st/XmbD.mp4
Comment 1 Nate Graham 2024-06-26 16:45:36 UTC
Might be fixed by the fix for Bug 480235. Can you upgrade to Plasma 6.1.1 and try again?
Comment 2 me 2024-06-27 18:46:47 UTC
(In reply to Nate Graham from comment #1)
> Might be fixed by the fix for Bug 480235. Can you upgrade to Plasma 6.1.1
> and try again?

It seems to be fixed now, although I did get the occasional portal notification more than once, but at least it doesn't steal focus from my applications.
Comment 3 me 2024-06-27 19:57:22 UTC
(In reply to me from comment #2)
> (In reply to Nate Graham from comment #1)
> > Might be fixed by the fix for Bug 480235. Can you upgrade to Plasma 6.1.1
> > and try again?
> 
> It seems to be fixed now, although I did get the occasional portal
> notification more than once, but at least it doesn't steal focus from my
> applications.

Nevermind, it just happened again.