Bug 490509

Summary: Annoying popup appearing every time that i connect a bluetooth controller
Product: [Plasma] xdg-desktop-portal-kde Reporter: Patrick Canal <patrickcanal3>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: ahiemstra, aleixpol, jgrulich, kde, me, nate, the.real.samuel.jimenez
Priority: NOR    
Version: 6.1.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: popup

Description Patrick Canal 2024-07-19 16:17:30 UTC
Created attachment 171791 [details]
popup

SUMMARY
 An annoying popup appears every time that i connect a bluetooth controller, if i close it, it appears again after i press any button. (I am using a PS4 controller) 

STEPS TO REPRODUCE
1. Connect a PS4 controller
2. Press any button on the controller

OBSERVED RESULT
The popup appears again even if i check  the box that is supposed to remember my choice

EXPECTED RESULT
The popup should never appear again

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Linux arch 6.9.10-arch1-1
KDE Plasma Version: 6.1.3
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2
Comment 1 David Redondo 2024-07-29 12:27:49 UTC
Showing the checkbox that does nothing  is a bug that is fixed by https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/commit/4f82c43d4091abbd36a4e446d887344677e32d6a 

Showing the dialog is intentional, an application requests to use the RemoteDesktop portal to send input (I assume XWayland because XTest is used to emulate input for the controller). In the future we may add a setting so you can allow XWayland to do this without prompting
Comment 2 David Redondo 2024-07-29 12:29:16 UTC
I forgot to add, I tested this with my xbox controller, it prompts once and then not again because XWayland keeps the session around. Even I connect/disconnect my controller.