Bug 482459 - Do not auto-forward empty clipboard when Plasma on PC is locking
Summary: Do not auto-forward empty clipboard when Plasma on PC is locking
Status: REPORTED
Alias: None
Product: kdeconnect
Classification: Applications
Component: common (other bugs)
Version First Reported In: unspecified
Platform: Debian testing Linux
: NOR wishlist
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-05 11:50 UTC by zocker.network
Modified: 2024-07-31 23:42 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zocker.network 2024-03-05 11:50:00 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
IMO KDE Connect on Linux should not auto-forward the clearing of the clipboard to other devices when the clearing was issued because the PC is locking. Because this clears the content from other devices, which the user might use.
Further, its triggering a (IMO disturbing) hint on Android 12 or newer. The hint is triggered by the system in all cases where an app changes the content in the clipboard. This hint is IMO disturbing in this case as it is not triggered by an user action but through an automatic process and because it does not inform the user about something relevant (other than that my PC has locked automatically after inactivity).

STEPS TO REPRODUCE
1. Connect a recent Android phone (12 or up) with a recent PC running Plasma in mostly default configuration
2. Enable auto-sharing clipboard from PC to phone
3. (For visualization purposes) keep the phone unlocked
4. Lock the PC (can be triggered automatically or manually)
5. Look on the phone

OBSERVED RESULT
The Android phone does notify the user about new clipboard content with a badge on the bottom of the screen. However, it is missing any content, most probably because the Plasma lockscreen cleared the clipboard (to avoid leaking its content to non-authorized users) and that clearing was forwarded to Android via KDE Connect.

EXPECTED RESULT
The Android phone showing nothing aka. the phone should keep its clipboard content

SOFTWARE/OS VERSIONS
Linux: Debian testing 
(available in About System)
KDE Plasma Version: 5.27.9
KDE Frameworks Version: 5.107.0
Qt Version: 5.15.10