If you are a long-time Windows or macOS user who has recently switched to Ubuntu Linux, you will likely encounter a deeply confusing behavior related to copy and pasting. Under the traditional X11 windowing system, the clipboard is heavily tied to the specific application that generated the copied text.
If you highlight a paragraph of text in your web browser, press Ctrl+C, and then close the web browser entirely before pressing Ctrl+V in your text editor, the text will completely disappear. Ubuntu automatically clears the clipboard the moment the source application is closed because the X11 server drops the selection buffer when the window dies.
To make the clipboard persistent across application closures—just like it works on Windows—you need to install a background clipboard manager that intercepts and holds your copied text in memory.
How to Install a Persistent Clipboard Manager (Parcellite)
You can easily fix this behavior by installing a lightweight daemon like Parcellite or CopyQ. In this guide, we will use Parcellite for its simplicity.
- Open your terminal application (
Ctrl+Alt+T). - Install the Parcellite package from the official Ubuntu repositories:
sudo apt update
sudo apt install parcellite
- Once installed, launch the daemon by typing
parcellitein the terminal, or search for it in your GNOME application launcher. - A new clipboard icon will appear in your top right system tray.
- Right-click the Parcellite icon in the tray and select Preferences.
- Under the Behavior tab, ensure that Use Copy (Ctrl-C) and Use Primary (Selection) are both checked.
- Ensure that Synchronize clipboards is also checked.
Parcellite will now run silently in the background. Whenever you press Ctrl+C, Parcellite captures the text and stores it independently of the source application. You can safely close your web browser, and your copied text will be ready and waiting when you hit Ctrl+V in your text editor.