Bug 491924

Summary: Clipboard is auto-synced on connection establishment though pref is off
Product: [Applications] kdeconnect Reporter: Roy Orbitson <roy-orbitson>
Component: commonAssignee: Albert Vaca Cintora <albertvaka>
Status: REPORTED ---    
Severity: normal CC: andrew.g.r.holmes
Priority: NOR    
Version First Reported In: 23.08.5   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Roy Orbitson 2024-08-20 01:55:57 UTC
SUMMARY
On my PC, in KDE Connect's device settings for my phone, Clipboard is enabled but its setting to automatically share is off. This preference seems to be ignored when devices establish a connection on the same network.

STEPS TO REPRODUCE
1. Enable clipboard sharing on PC and Android devices. Set PC to not auto share anything.
2. Ensure devices are not connected to same LAN (e.g. temporarily disable wifi on phone).
3. Wait for PC to register that it's lost the connection to the phone.
4. Copy something unique on PC, i.e. not in clipboard history, or modify the last clipboard item.
5. Connect devices to same LAN again.

OBSERVED RESULT
Clipboard of Android device now contains the last item copied on the desktop, despite no explicit share (hamburger menu > Send Clipboard). I actually get a standard copy popup on my phone, with share and edit options, as if I had done it there.

EXPECTED RESULT
No change to Android clipboard.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 24.04
KDE Plasma Version: 5.27.11
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.13

ADDITIONAL INFORMATION
The pref is respected and further copy actions aren't propagated whilst a connection is maintained.