INTERACT FORUM

More => Old Versions => JRiver Media Center 20 for Linux => Topic started by: bob on November 26, 2013, 05:38:32 pm

Title: Synchronizing copy paste buffers
Post by: bob 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).
Title: Re: Synchronizing copy paste buffers
Post by: rinring 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
Title: Re: Synchronizing copy paste buffers
Post by: Hendrik 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)
Title: Re: Synchronizing copy paste buffers
Post by: rinring 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.