• whats_all_this_thenOP
    link
    fedilink
    arrow-up
    2
    ·
    6 months ago

    Okay I had no.idea. So on Plasma, I’m guessing when I copy anything, it’s writing it both the primary selection, and the clipboard selection and that’s how it stays in the clipboard manager thingy?

    • stepan@lemmy.cafe
      link
      fedilink
      English
      arrow-up
      1
      ·
      6 months ago

      Plasma has a setting to synchronize selection and clipboard or something like that.

    • rtxn@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      6 months ago

      Not exactly. When you select a text and copy it, the two selections will end up containing the same text, but you can write to either selection without affecing the other by using an API, e.g. a website’s “copy to clipboard” button, or xclip/wl-copy.

      Clipboard managers with a history feature are an altogether different layer on top of the standard selections. Plasma’s clipboard manager only cares about the clipboard selection, and even then, there are exceptions (e.g. copying a password for KeepassXC doesn’t save it in the history).