Bug 480412

Summary: "Remote control requested" dialog from KDE Connect doesn't show source of the request when kdeconnect was started via DBus
Product: [Plasma] xdg-desktop-portal-kde Reporter: Nicolas Fella <nicolas.fella>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: CONFIRMED ---    
Severity: normal CC: aleixpol, caseyjp1, dougshaw77, jc40477, jgrulich, nate, putr4.s, rickard
Priority: NOR Keywords: qt6
Version: git-master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Screenshot

Description Nicolas Fella 2024-01-27 22:49:24 UTC
Created attachment 165294 [details]
Screenshot

STEPS TO REPRODUCE
1. Use KDE Connect on Wayland 
2. Use Remote Input

OBSERVED RESULT

Dialog that says "Requested access to:". See screenshot

EXPECTED RESULT
Something like: "KDE Connect requested access to:"

SOFTWARE/OS VERSIONS
KDE Plasma Version: master
KDE Frameworks Version: master
Qt Version: 6.7

ADDITIONAL INFORMATION
Comment 1 Doug 2024-01-28 05:23:44 UTC
On KDE Neon Testing the dialogue is phrased as you put it.  Maybe someone fixed this already?
Comment 2 Prajna Sariputra 2024-01-29 08:38:53 UTC
The reported app name depends on how kdeconnectd is started, if it was via the autostart .desktop file then it works fine, if it's started via a DBus call (for example by running `kdeconnect-cli --refresh` after killing kdeconnectd) then no app name is shown like in the screenshot, and if it's manually run via say Konsole then the dialog will say that Konsole is making the request.
Comment 3 Nate Graham 2024-01-29 17:34:47 UTC
Can reproduce.
Comment 4 rickard 2024-06-30 07:46:06 UTC
I removed KDE Connect.
It still always happens under wayland when starting proton games.
Comment 5 Casey 2024-07-20 23:29:37 UTC
(In reply to Nate Graham from comment #3)
> Can reproduce.

Just happened here. I have journalctl -f running in a guake tab and it captured this:
 xdg-desktop-portal-kde[1564]: xdp-kde-remotedesktop: Only stream input
Jul 20 17:07:17 Kandalf kwin_wayland[1270]: kwin_libeis: Libeis: registering eis_handshake v1 object 0
Jul 20 17:07:17 Kandalf kwin_wayland[1270]: kwin_libeis: Libeis: sending: object 0 (eis_handshake@v1:handshake_version(0)) signature 'u'
Jul 20 17:07:17 Kandalf kwin_wayland[1270]: kwin_libeis: Libeis: dispatching eis_handshake.handshake_version() on object 0
-------------------------------------
followed by more of the same to end up here:
win_wayland[1270]: kwin_libeis: Libeis: sending: object 0xff0000000000000b (eis_device@v2:interface(5)) signature 'nsu'
Jul 20 17:07:17 Kandalf kwin_wayland[1270]: kwin_libeis: Libeis: sending: object 0xff0000000000000c (eis_keyboard@v1:keymap(1)) signature 'uuh'
Jul 20 17:07:17 Kandalf kwin_wayland[1270]: kwin_libeis: Libeis: sending: object 0xff0000000000000b (eis_device@v2:done(6)) signature ''
Jul 20 17:07:17 Kandalf kwin_wayland[1270]: kwin_libeis: Libeis: sending: object 0xff0000000000000b (eis_device@v2:resumed(7)) signature 'u'
Jul 20 17:07:17 Kandalf kwin_wayland[1270]: kwin_libeis: Libeis: dispatching eis_device.start_emulating() on object 0xff00000000000003
Jul 20 17:07:17 Kandalf kwin_wayland[1270]: kwin_libeis: Libeis: queuing event type EIS_EVENT_DEVICE_START_EMULATING (200)
Jul 20 17:07:17 Kandalf kwin_wayland[1270]: kwin_libeis: Device "xembedsniproxy eis absolute device" starts emulating
Jul 20 17:07:17 Kandalf kwin_wayland[1270]: kwin_libeis: Libeis: dispatching eis_device.start_emulating() on object 0xff00000000000007
Jul 20 17:07:17 Kandalf kwin_wayland[1270]: kwin_libeis: Libeis: queuing event type EIS_EVENT_DEVICE_START_EMULATING (200)
Jul 20 17:07:17 Kandalf kwin_wayland[1270]: kwin_libeis: Device "xembedsniproxy eis pointer" starts emulating
Jul 20 17:07:17 Kandalf kwin_wayland[1270]: kwin_libeis: Libeis: dispatching eis_device.start_emulating() on object 0xff0000000000000b
Jul 20 17:07:17 Kandalf kwin_wayland[1270]: kwin_libeis: Libeis: queuing event type EIS_EVENT_DEVICE_START_EMULATING (200)
Jul 20 17:07:17 Kandalf kwin_wayland[1270]: kwin_libeis: Device "xembedsniproxy eis keyboard" starts emulating
-------------------------------------------------------
Comment 6 Jonah Jones 2024-09-05 21:47:23 UTC
(In reply to rickard from comment #4)
> I removed KDE Connect.
> It still always happens under wayland when starting proton games.

For me, it happens under wayland in proton games while using gamescope.
Comment 7 rickard 2024-09-06 03:56:13 UTC
It shows the source now in KDE 6.1.4
For me, it was xdotool in a script I had as a wrapper for proton games.