b9a089344e
## Summary
This MR adds a config dialog for the Clipboard plugin, where the user can toggle
whether to share password and/or anything else with other devices.
Implements !39
BUG: 458063
According to previous discussion at !39 (and the bug linked), some users want to
skip sending passwords to other devices while others rely on the existing behavior.
This MR addresses that by allowing users to control those two types separately and
will replace !39 if merged.
![Screenshot with new config dialog](/uploads/3dfc6c6d69b86e6512e6a8948320a839/Screenshot_1661407807.png)
Borrowing the idea from !39, the `x-kde-passwordManagerHint` MIME data hint is used
to determine whether the content is considered secret. I've tested this method with
KeepassXC which [sets this correctly](
|
||
---|---|---|
.. | ||
clipboard_config.cpp | ||
clipboard_config.h | ||
clipboard_config.ui | ||
clipboardlistener.cpp | ||
clipboardlistener.h | ||
clipboardplugin.cpp | ||
clipboardplugin.h | ||
CMakeLists.txt | ||
kdeconnect_clipboard.json | ||
kdeconnect_clipboard_config.qml | ||
README |
When the clipboard changes, it sends a package with type kdeconnect.clipboard and the field "content" (string) containing the new clipboard content. When it receivest a package of the same kind, it should update the system clipboard with the received content, so the clipboard in both devices always have the same content. This plugin is symmetric to its counterpart in the other device: both have the same behaviour.