| Summary: | One-way clipboard sharing no longer works | ||
|---|---|---|---|
| Product: | [Applications] kdeconnect | Reporter: | Roy Orbitson <roy-orbitson> |
| Component: | android-application | Assignee: | Albert Vaca Cintora <albertvaka> |
| Status: | REPORTED --- | ||
| Severity: | normal | CC: | fabian |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Android | ||
| OS: | Android 11.x | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Roy Orbitson
2021-10-27 06:44:27 UTC
It does not work the other way around too. I'm not entirely sure, but I think it was possible to send clipboard content from android to linux even if the clipboard plugin was disabled in linux. Now it only works if the feature is enabled on both devices. Currently this is annoying because linux automatically sends it's clipboard content to android and android has a new popup when receiving clipboard content with Android 13. I've quickly looked through the code. For the other way around, the fix is probably to disable the automatic sending of clipboard content to your phone. See the fix below. It would probably be best if a user could toggle that functionality. (These android 13 clipboard popups are annoying)
For a quick and dirty fix just comment the lines in ClipboardListener::ClipboardListener() in the file kdeconnect-kde/plugins/clipboard/clipboardlistener.cpp:
ClipboardListener::ClipboardListener()
: clipboard(KSystemClipboard::instance())
{
// #ifdef Q_OS_MAC
// connect(&m_clipboardMonitorTimer, &QTimer::timeout, this, [this]() {
// updateClipboard(QClipboard::Clipboard);
// });
// m_clipboardMonitorTimer.start(1000); // Refresh 1s
// #endif
// connect(clipboard, &KSystemClipboard::changed, this, &ClipboardListener::updateClipboard);
}
|