Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Use case:

  1. I'm writing an email, and need a snippet from a text file.
  2. Open the file in Gedit (or Kate, for that matter) and copy the desired snippet.
  3. Close text editor, return to email.
  4. Paste snippet into email -- oh wait! Nothing is pasted, apparently because closing the text editor causes the clipboard to empty. Not my intention!

What does work:

4b. Return to email, paste snippet, back to editor, close editor.

I can't figure out if there is a way to prevent Gedit (and/or Kate) from clearing the clipboard, or how else to avoid step 4b which seems a rather roundabout way to work around an unintuitive behaviour.


PS. Apologies, I know that this is not directly related to Ubuntu, but my Google-fu is weak and I don't know where else I'll find an expertly answer (or any answer at all, seriously, how do you search for something like that?). Right now, I'm on Linux Mint 11 LXDE, but I've suffered from the same on stock Ubuntu and Kubuntu as well.

PPS. To me this behaviour seems very unnatural, but I see it here and there in Linux: also in the KDE screenshot tool (substitute "image" for "snippet" and "image editor" for "email"). Is it really just me?

share|improve this question
Spotted a link to "ClipboardPersistence". Installed Parcellite which seems to work (as long as I remember to start the dang thing). Wondering why this isn't standard. But I can get on with my work now. – KlaymenDK May 29 '12 at 12:43
up vote 1 down vote accepted

The Ubuntu wiki on Clipboard Persistence suggests that what I'm seeing is a bug but at the same time the intended behaviour. I am now using Parcellite to make things work for me. Thank you for your suggestion.

share|improve this answer

Another option is Klipper. It stores your clipboard entries, and allows you to search them. Have you ever wanted to reuse something that you copied an hour ago, or even yesterday? You can, with Klipper.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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