autocutsel

“automated xcutsel”


*Description

X servers use two schemes to copy text between applications. The first one (old and deprecated) is the cutbuffer. It is a simple buffer in which any application can store text. The other scheme is the selection and works differently. There may be many selections in a single server. An application does not copy data in a selection, it "owns" it. When another application wants to retreive the content of a selection, it asks the owner.

Recent desktop applications (GNOME, KDE, ...) use two selections: the PRIMARY and the CLIPBOARD. The PRIMARY selection is used when you select some text with the mouse. You usually paste it using the middle button. The CLIPBOARD selection is used when you copy text by using, for example, the Edit/Copy menu. You may paste it using the Edit/Paste menu.

Windows VNC clients keep the Windows clipboard synchronized with the cutbuffer, but not with the selections. And since recent applications don't use the cutbuffer, the server's CLIPBOARD is never synchronized with Windows' one.

Autocutsel tracks changes in the server's cutbuffer and CLIPBOARD selection. When the CLIPBOARD is changed, it updates the cutbuffer. When the cutbuffer is changed, it owns the CLIPBOARD selection. The cutbuffer and CLIPBOARD selection are always synchronized. Since the VNC client synchronizes the Windows' clipboard and the server's cutbuffer, all three "clipboards" are always kept synchronized. When you copy some text in Windows, the cutbuffer and the CLIPBOARD selection are updated. When you copy text on the server using either the cutbuffer or the CLIPBOARD selection, the Windows's clipboard is always updated.

You can also use autocutsel to track the PRIMARY selection to copy text when it's selected. To do this, simply run autocutsel with the arguments "-s PRIMARY"

Some softwares (like Open Office Writer) have trouble when the PRIMARY selection is requested before the mouse button is released. As a workaround, you can run autocutsel with the "-buttonup" option and it will only get the selection when the first mouse button is not pressed.

*Download

This software is released under the GNU GPL.

*News

  • 2021年03月03日: Version 0.10.1 released
  • 2014年05月04日: Version 0.10.0 released
  • 2013年11月19日: Version 0.9.1 released
  • 2007年03月24日: New website design thanks to kty
  • 2006年11月05日: Version 0.9.0 released
  • 2005年12月23日: Version 0.8.1 released
  • 2004年12月23日: Version 0.8.0 released
  • 2004年12月12日: Version 0.7.1 released
  • 2004年09月11日: Version 0.7.0 released
  • 2002年06月03日: Version 0.6.2 released
  • 2002年06月02日: Version 0.6.1 released
  • 2002年05月27日: Version 0.6 released
  • 2002年05月26日: Version 0.5 released
  • 2002年05月19日: Version 0.4 released

*Contact

Any feedback is welcome. Michael Witrant ( michael at ouvrages-web . fr )

Published under GFDL

Design: one zest

Validate XHTML 1.0 Strict

AltStyle によって変換されたページ (->オリジナル) /