« Havoc | Main

June 03, 2005

Clipboard manager in gnome-settings-daemon

So I went ahead and committed code to add a clipboard manager into gnome-settings-daemon. To try it out, you need latest CVS. Then, just:

The code should be relatively bug-free but if you encounter any problems, feel free to comment. (Also, note that this only works with applications that support it by calling gtk_clipboard_set_can_store, except for text copying which should work pretty much everywhere)

Posted by Anders Carlsson at June 3, 2005 10:41 AM

Comments

JOOC, does this also work for the PRIMARY buffer as well?

Posted by: Dave at June 3, 2005 12:14 PM

No, it does just work for the CLIPBOARD selection. Since the PRIMARY selection is used for text that is selected it's kinda weird to make that persistent since the selection is gone when the application quits.

Posted by: Anders Carlsson at June 3, 2005 12:43 PM

This is great news Anders. Thanks for your work on this.

Posted by: Philip Van Hoof at June 3, 2005 02:21 PM

The only app that empties PRIMARY when text is deselected that I know of is gedit-- all other apps I've worked with basically treat it as an implicit version of the the Control+C copy command. (That's how I think of it as a regular PRIMARY user too)

Admittedly, I don't run into the app-closed-buffer-empty problem a whole lot, but when I do, it is bothersome. It's great that there's a fix now

Posted by: Dave at June 3, 2005 07:28 PM

A number of people have written clipboard persistance for Gnome over the past few years. See, in particular, gnome-clipboard-daemon. It even included a patch for gnome-settings-daemon.

What does your solution have that this one didn't?

http://members.chello.nl/~h.lai/gnome-clipboard-daemon/

Posted by: sb at June 3, 2005 08:29 PM

hrrr! You are a great programmer!
HrRRrHRR

Posted by: Martin at June 24, 2005 10:59 AM