kdeconnect-kde/plugins/clipboard/kdeconnect_clipboard.json

120 lines
5.9 KiB
JSON
Raw Normal View History

{
"KPlugin": {
"Authors": [
{
"Email": "albertvaka@gmail.com",
"Name": "Albert Vaca Cintora"
}
],
"Description": "Share the clipboard between devices",
"Description[ar]": "شارك الحافظة بين الجهازين",
"Description[az]": "Cihazlar arasında mübadilə buferini paylaşmaq",
"Description[bg]": "Споделяне на клипборда между устройствата",
"Description[ca@valencia]": "Compartix el porta-retalls entre dispositius",
"Description[ca]": "Comparteix el porta-retalls entre dispositius",
"Description[cs]": "Sdílet obsah schránky mezi zařízeními",
"Description[da]": "Del udklipsholderen mellem enheder",
"Description[de]": "Die Zwischenablage mit Geräten teilen",
"Description[el]": "Διαμοιρασμός του προχείρου μεταξύ συσκευών",
"Description[en_GB]": "Share the clipboard between devices",
"Description[es]": "Compartir portapapeles entre dispositivos",
"Description[et]": "Lõikepuhvri jagamine seadmete vahel",
"Description[eu]": "Partekatu arbela gailuen artean",
"Description[fi]": "Jaa leikepöytä laitteiden välillä",
"Description[fr]": "Partagez le presse-papiers entre périphériques",
"Description[gl]": "Comparta o portapapeis entre os dispositivos",
"Description[hu]": "A vágólap megosztása az eszközök között",
"Description[ia]": "Comparti le area de transferentia inter dispositivos",
"Description[id]": "Bagikan papan klip antara peranti",
"Description[is]": "Deila klippispjaldinu milli tækja",
"Description[it]": "Condividi gli appunti tra i dispositivi",
"Description[ja]": "デバイス間でクリップボードを共有",
"Description[ka]": "გაცვალეთ ბუფერი მოწყობილობებს შორის",
"Description[ko]": "장치간 클립보드 공유",
"Description[lt]": "Bendrinti iškarpinę tarp įrenginių",
"Description[nl]": "Het klembord tussen apparaten delen",
"Description[nn]": "Del utklippstavla mellom einingar",
"Description[pl]": "Współdzieli schowek między urządzeniami",
"Description[pt]": "Partilhar a área de transferência entre dispositivos",
"Description[pt_BR]": "Compartilha a área de transferência entre dispositivos",
"Description[ro]": "Partajează clipboard-ul între dispozitive",
"Description[ru]": "Общий буфер обмена для устройств",
"Description[sk]": "Zdieľanie schránky medzi zariadeniami",
"Description[sl]": "Deli odložišče med napravami",
"Description[sr@ijekavian]": "Дељење клипборда између уређаја",
"Description[sr@ijekavianlatin]": "Deljenje klipborda između uređaja",
"Description[sr@latin]": "Deljenje klipborda između uređaja",
"Description[sr]": "Дељење клипборда између уређаја",
"Description[sv]": "Dela klippbordet mellan apparater",
"Description[tr]": "Aygıtlar arasında panoyu paylaştır",
"Description[uk]": "Спільне використання буфера обміну даними на пристроях",
"Description[x-test]": "xxShare the clipboard between devicesxx",
"Description[zh_CN]": "在设备间共享剪贴板",
"Description[zh_TW]": "在裝置之間共享剪貼簿",
"EnabledByDefault": true,
"Icon": "klipper",
"Id": "kdeconnect_clipboard",
"License": "GPL",
"Name": "Clipboard",
"Name[ar]": "الحافظة",
"Name[az]": "Mübadilə buferi",
"Name[bg]": "Клипборд",
"Name[ca@valencia]": "Porta-retalls",
"Name[ca]": "Porta-retalls",
"Name[cs]": "Schránka",
"Name[da]": "Udklipsholder",
"Name[de]": "Zwischenablage",
"Name[el]": "Πρόχειρο",
"Name[en_GB]": "Clipboard",
"Name[es]": "Portapapeles",
"Name[et]": "Lõikepuhver",
"Name[eu]": "Arbela",
"Name[fi]": "Leikepöytä",
"Name[fr]": "Presse-papiers",
"Name[gl]": "Portapapeis",
"Name[hu]": "Vágólap",
"Name[ia]": "Area de transferentia",
"Name[id]": "Papan klip",
"Name[ie]": "Paperiere",
"Name[is]": "Klippispjald",
"Name[it]": "Appunti",
"Name[ja]": "クリップボード",
"Name[ka]": "გაცვლის ბაფერი",
"Name[ko]": "클립보드",
"Name[lt]": "Iškarpinė",
"Name[nl]": "Klembord",
"Name[nn]": "Utklippstavle",
"Name[pl]": "Współdzielenie schowka",
"Name[pt]": "Área de Transferência",
"Name[pt_BR]": "Área de transferência",
"Name[ro]": "Clipboard",
"Name[ru]": "Буфер обмена",
"Name[sk]": "Schránka",
"Name[sl]": "Odložišče",
"Name[sr@ijekavian]": "Клипборд",
"Name[sr@ijekavianlatin]": "Klipbord",
"Name[sr@latin]": "Klipbord",
"Name[sr]": "Клипборд",
"Name[sv]": "Klippbord",
"Name[tr]": "Geçici taşıma panosu",
"Name[uk]": "Буфер обміну",
"Name[x-test]": "xxClipboardxx",
"Name[zh_CN]": "剪切板",
"Name[zh_TW]": "剪貼簿",
"ServiceTypes": [
"KdeConnect/Plugin"
],
"Version": "0.1",
2019-03-23 16:34:48 +00:00
"Website": "https://albertvaka.wordpress.com"
},
Add config for clipboard plugin on content types to share. ## 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](https://github.com/keepassxreboot/keepassxc/blob/a6d3f973fa8449f0f7dac864b3bd3928c29c649f/src/gui/Clipboard.cpp#L62). See test plan below. In theory, MIME also can be used to test for images and another checkbox can be easily added should we decided to support images later. For now though, the enum and the config supports only passwords or "anything else". Both defaults to true, thus keeping full backwards compatibility. I've been keeping both unchecked since I only share in one direction (Android to Linux), which wasn't possible until this MR. Others may want to make their own choices. ## Test Plan Please reference the screenshot above for the steps. From the indicator, right-click and select `Configure`. Select a device from the left side (or pair one if needed). In "available plugins", make sure "Clipboard" is checked, and verify that a "Configure" icon button is now shown on the right. Clicking that icon should bring up the new config dialog, where the two check boxes can be toggled as desired. Click on "OK" to save and apply the settings. Clicking on "Defaults" should bring both back to checked (the default behavior). Copy normal plain text from your favorite text editor and it should be sent to another device if the "anything else" checkbox is checked. I've tested this on an Android phone but I see no reason it won't work elsewhere given the code for sending has not been changed. (Feel free to test on other devices.) Open KeepassXC and select an entry, right click and select "Copy password". This sets the MIME hint so it should be treated as a password, controlled by the "passwords" checkbox. I've toggled the settings multiple times on and off. Once "OK" is clicked, the next clipboard change should pick up the latest settings. I've only tested on Linux desktops (Arch Linux) since I do not own a Mac. I don't believe any OS X application sets `x-kde-passwordManagerHint` at all, so they may be controlled by "anything else".
2022-10-17 22:04:20 +01:00
"X-KDE-ConfigModule": "kdeconnect/kcms/kdeconnect_clipboard_config",
"X-KdeConnect-OutgoingPacketType": [
"kdeconnect.clipboard",
"kdeconnect.clipboard.connect"
],
"X-KdeConnect-SupportedPacketType": [
"kdeconnect.clipboard",
"kdeconnect.clipboard.connect"
]
}