INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Synchronizing copy paste buffers  (Read 3724 times)

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13896
Synchronizing copy paste buffers
« on: November 26, 2013, 05:38:32 pm »

Linux has 3 distinct copy/paste buffer systems.
We are starting with the least complex, the same method xterm uses (cut buffers).
To synchronize the primary and clipboard clipboards you can use a little utility autocutsel.
sudo apt-get install autocutsel
then run the synchronizer commands from a terminal or put them in your X startup scripts.
autocutsel -fork &
autocutsel -selection PRIMARY -fork &

I wish I'd know about this a while ago since I prefer using xterm over the various ones that come with kde, etc.
The problem was the lack of ability to copy / paste between xterm and other apps (at least the way my system is configured).
Logged

rinring

  • Recent member
  • *
  • Posts: 47
Re: Synchronizing copy paste buffers
« Reply #1 on: July 22, 2014, 06:58:12 am »

Don't know which widget library are you using.
For example Qt has perfect support for clipboard:
http://doc.qt.digia.com/4.6/dnd.html#the-clipboard
Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10958
Re: Synchronizing copy paste buffers
« Reply #2 on: July 22, 2014, 08:48:53 am »

We don't use any widget library, since we want to be platform independent.
We'll need to implement clipboard ourselves, it's on the list (but that list has a lot of things on it)
Logged
~ nevcairiel
~ Author of LAV Filters

rinring

  • Recent member
  • *
  • Posts: 47
Re: Synchronizing copy paste buffers
« Reply #3 on: July 23, 2014, 06:21:48 am »

Now I understand you...
I didn't expect that answer.

It's a huge effort to create a multi platform library from scratch.

I've seen many multiplatform apps with Qt, Java (SWT, Swing), Python made with no effort.
Logged
Pages: [1]   Go Up