Hacker News new | ask | show | jobs
by justsomehnguy 10 days ago
Even if it was 2GB of some data? Even if you run low on memory?

TFA and comments are clearly a solution is search of the problem.

1 comments

Is it possible to copy 2GB of data to the clipboard? If it's an image or something I'd expect the clipboard to contain a reference to the image or some such. How do clipboard managers handle this?
Yes. It contains a reference to the image in the source application.

When you paste, X or Wayland lets the source application communicate with the destination application to send the image over.

You’ll likely always have a very simple clipboard manager that stores a single copy of the clipboard so you don’t rely on the source application staying alive.

Clipboard managers are free to store the clipboard anywhere.

Yes?

Just open a .BMP or .TXT of your desired size, copy it contents to the clipboard, close the app and paste to anywhere else.

Sure, sometimes it's a ref, eg: files, but sometimes it's just plain data.