10

Since they are "saved to clipboard", the contents must be stored somewhere.

Are they stored in a file?

10

You seem to be lacking an understanding of clipboards in Linux. There are 3 usually available to users.

These clipboards are called "Selections"

There is:

  • PRIMARY - This is normally used for middle mouse button = copy/paste
  • SECONDARY - Normally not used by much, but it exists. Usually as an in app specific copy and paste.
  • CLIPBOARD - Usually Ctrl+c and Ctrl+v style copy and paste.

All of them are stored, by default in memory of the controlling application (usually Xorg, but not always). And every child application has access to it.

Clipboard monitors and managers exist that can monitor the clipboards and store their contents in a file, or more commonly, let you review your clipboard history.

4

What clipboard? There are some apps/tools that can be used to store clipboard contents to a file on disk, but the core clipboard feature in X11 simply keeps what is in the clipboard, in memory. It is not stored in a file on disk.

  • Any idea what the address is? – TellMeWhy Feb 3 '16 at 21:55
  • Not sure it is so "simple' ;) – Panther Feb 3 '16 at 22:24
  • @bodhi.zazen Yes, it is that simple. :) – dobey Feb 4 '16 at 1:19
  • @DevRobot what will you do with the address? – muru Feb 4 '16 at 1:19
  • 2
    You can't access that address and it always changes. Accessing the clipboard by memory address isn't going to work. Not legitimately anyway. See github.com/ThomasHabets/clipsniff – coteyr Feb 4 '16 at 15:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.