Skip to content

WIP: Clipboard: Ability to sync images in the clipboard.(Desktop to Desktop Only)

Anjani Kumar requested to merge anjani/kdeconnect-kde:clip_pc into master

Summary

The current clipboard plugin supports text. This patch adds support for syncing images through the clipboard. Certain applications like Spectacle,Telegram,etc can add images directly to the clipboard, unlike file managers who just add the file uri. This can be used to quickly share screenshots through the clipboard. This is work in progress as I have not tested it completely. It may not work for images at all.

Test Plan

I have made sure that these changes don't affect the current synchronization of plain text. I have tested Phone-Desktop sync and it is working fine as before.

I am currently having some trouble setting up a VM and setting up a build environment in it. However, you should be able to this like:-

  • Copy image to the clipboard. Like from Spectacle. Screenshot_20200321_010815

  • Attempt to paste the image in a connected desktop inside an application that supports pasting an image from the clipboard like Telegram, Dolphin. Screenshot_20200321_134802 Screenshot_20200321_134714

  • The copied pictured from one desktop should be pasted in the connected desktop.

Edited by Anjani Kumar

Merge request reports