LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-30-2012, 03:26 PM   #1
m4rtin
Member
 
Registered: Sep 2007
Posts: 261

Rep: Reputation: 16
Question are there multiple clipboards under Linux?


It's best to describe my question with an example. If I highlight "linuxquestions.org" on my Chrome address bar using the mouse, make the right mouse click and choose Copy from the menu, then I'm able to paste "linuxquestions.org" string with the middle mouse button, SHIFT+Ctrl+V or with choosing the "Paste" from the application menu. Now if I will execute:

Code:
echo test | xclip
..then I copy string "test" to X clipboard. I can paste this "test" string with middle mouse button, but SHIFT+Ctrl+V or right-click menu "Paste" options still paste the "linuxquestions.org". I'm running GNOME 2.30.2.

Are there multiple clipboards which are not always in sync? Something like desktop environment clipboard and X clipboard?
 
Old 10-30-2012, 08:00 PM   #2
shefla
Member
 
Registered: Oct 2012
Location: France
Distribution: Archlinux
Posts: 36

Rep: Reputation: 5
From what I know, yes, at least 2 types of clipboard.
1st - working in all desktop environment (or almost all) - in fact it should be the X's one
- you just select the text to copy
- you paste it with the middle mouse button
2nd - working on some desktop environment like GNOME or KDE
- you select the text and press CTRL+C to copy
- you press CTRL+V to paste

You have also some other shortcuts like CTRL+SHIFT+C and CTRL+SHIFT+V which can be used in a terminal for example.
It seems to use the same one than 2nd above.

Emacs for example seemes to use an internal one (not one of the 2 above).

Last edited by shefla; 10-30-2012 at 08:02 PM.
 
Old 10-31-2012, 02:58 PM   #3
m4rtin
Member
 
Registered: Sep 2007
Posts: 261

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by shefla View Post
From what I know, yes, at least 2 types of clipboard.
1st - working in all desktop environment (or almost all) - in fact it should be the X's one
- you just select the text to copy
- you paste it with the middle mouse button
2nd - working on some desktop environment like GNOME or KDE
- you select the text and press CTRL+C to copy
- you press CTRL+V to paste

You have also some other shortcuts like CTRL+SHIFT+C and CTRL+SHIFT+V which can be used in a terminal for example.
It seems to use the same one than 2nd above.

Emacs for example seemes to use an internal one (not one of the 2 above).
ok. Actually, screen(1) has it's own clipbord as well And vim. I guess then each application(from desktop environments to text editors) is technically capable to have it's own clipboard?

In addition, I found nice small utility parcellite, which is a GTK+(as I mentioned, I use Gnome) clipboard manager while xclip is for X clipboard.

Has anyone used desktop environment, which has no clipboard at all? I mean only the X11 clipboard is available.

//turned out, that both of those clipboard belong to X. Here is a nice article.

Last edited by m4rtin; 11-01-2012 at 09:20 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] linux clipboards... how to know which one was modified last in bash? masavini Programming 6 09-13-2012 10:01 AM
creating multiple user in multiple linux boxes from single remote host niaz_ph Linux - Newbie 3 09-12-2011 03:48 PM
LXer: Hone Your Desktop Clipboards with Parcellite on Linux LXer Syndicated Linux News 0 06-08-2011 12:50 AM
Linking Windows and Linux Clipboards OnoTadaki Programming 1 10-31-2007 03:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration