I work with a couple of guys who are quite stuck in their ways and are quite reliant on old tools, one of which is xclipboard(1).

Unfortunately, Gnome comes with it's own clipboard manager, so when you try to run xclipboard, you get the following:

$ xclipboard
Error: another clipboard is already running
$

Of course, ps(1M) will show no clipboard related processes running. This is because the functionality is performed by Gnome itself, I believe, as part of the functionality of gnome-settings-daemon.

One of my colleagues gave me the challenge of getting xclipboard working on Gnome on OpenSolaris/Nevada, ie Gnome 2.6, and I found it quite easy to do in the end.

The trick is to tell Gnome not to perform this functionality anymore as follows:

  1. Open up a terminal and fire up /usr/bin/gconf-editor
  2. In the window that opens, go to Edit -> Find and search for "clip"
  3. Select /apps/gnome_settings_daemon/plugins/clipboard from the bottom part of the window [1]
  4. Untick the "active" box in the right hand pane [2]

    gconf-editor

  5. Close the window
  6. Log out and log in again *

That's it. xclipboard should now work with Gnome.

xclipboard running with Gnome

You can of course make this change via the CLI in one command, and then verify it using gconftool-2(1):

$ gconftool-2 --set /apps/gnome_settings_daemon/plugins/clipboard/active 0 \
  --type bool
$ gconftool-2 --get /apps/gnome_settings_daemon/plugins/clipboard/active
false
$

* The log out /log in is needed for the change to take effect without any adverse effects. Unfortunately my results were quite inconsistent if I didn't log out after making the gconf change. The log out/log in was the only thing that kept things consistent. Your mileage may vary.

This change works under Linux too.