Skip navigation.

GNOME Clipboard Daemon - your clipboard will actually work

FreeDesktop.org
FreeDesktop.org

Normally, when you copy something in an X application and you close it, the content of the clipboard is lost. This is probably one of the biggest reasons why people keep saying that copy & paste in Linux "doesn't work".

GNOME Clipboard Daemon is a program that keeps the content of your X clipboard in memory, so the clipboard won' get lost even after you close the application you copied from. It's a daemon - it has no GUI. You start it and it'll run in the background and Just Work(tm).Click here for more information, source & binaries.

Re: GREAT WORK AROUND!!

Not fix what? What exactly is wrong with the X clipboard?

- This app is not part of GNOME and will probably never be.

- The X clipboard does not lack support for non-text data. The X clipboard supports any arbitrary kind of data, it's just that application developers don't utilize this feature.

- Many copy & paste problems between Mozilla and other apps are actually caused by bugs in Mozilla itself, not the X clipboard.

- Many copy & paste problems between other apps (like QT 1.x/2.x apps) are caused by bugs in the toolkit or the application. See also http://www.freedesktop.org/Standards/clipboards-spec

The *only* potential problem right now (when using the daemon) is the performance hit caused when you're copying a lot of data. But I don't believe this is something that can't be fixed without breaking the current clipboard design. The upcoming XFIXES extension should fix a lot of problems.

And this (keeping *all* data in the clipboard in memory) is exactly how the old (obsolete) Windows clipboard works. Copying large amounts of data in Windows (using the old model) also has a performance hit.

The new Windows clipboard works very similar to the X clipboard. Which means if you close the application that owns the clipboard, you lose the clipboard content.

See also this research by Mike Hearn: http://mail.gnome.org/archives/desktop-devel-list/2003-September/msg00257.html