Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
In Windows you can perform a copy operation on data, e.g. document text, then close that application, open a new application, and paste the copied data.
In Linux I'm finding this not to be quite as easy, as once the "copy" application is closed, the copied data is also lost.
I don't know what gnome provides, but in Kde there is klipper. The usual copy/paste is enhanced. klipper keeps a list of copies (you set the number of copies klipper should keep in the 'configure klipper' option).
Then, when you copy something, it shows up in the list. To paste, you left click on the klipper icon in the tray, select the item to paste, then paste it as often as you want. The selected item remains as the item to paste until you select another, or copy something else.
I’ve never had that problem… what application are you using? what method of copying are you using (e.g., selecting text with the mouse?).
Let my try to be more descriptive, for example ...
I use instance 1 of gedit to view a text file. I want to copy a piece of text from that instance of gedit into gedit instance 2. As long as the instance 1 remains open, I can copy and paste between the 2 instances. If I perform a copy in gedit 1, then close it, then attempt to paste into gedit 2, I can't.
Does it happen in all applications (which toolkit(s) — gtk, qt, kdelib, Xlib/Xaw, etc.)? So far you’ve mentioned gedit which is a gtk application. Does the same problem occur when going between gedit and a different gtk app (say firefox). What about from a completely different gtk app to another different gtk app. What about between gtk and qt apps, or between qt apps. That’s what I was asking there.
How are you copying and pasting? The X system has a basic copy and paste functionality employed by selecting text with the mouse (i.e., highlighting it) to copy, and middle click to paste. There is also a copy buffer accessible through certain toolkits (such as gtk) where you press Ctrl+C (or sometimes Ctrl+Insert) to copy and Ctrl+V (or Shift+Insert) to paste.
So could you give us a synopsis of the apps/toolkits between which Ctrl-C/Ctrl-V copy/pasting works and those between which highlight/middle-click works.
Losing the Paste buffer when the original application is closed is typical Linux behaviour. I sure there are workarounds, such as the aforementioned "klipper," but it's not really that big a deal to get used to. If I'm copying multiple items and I want to close the source files, I simply open a text editor window, such as Gedit and save the fragments there temporarily until I have everything I want.
The tradeoff is "middle click" pasting. Much more efficient than menu based copy/paste or Ctrl-c, Ctrl-v techniques.
Hmmm ... I'm unfamiliar with all the different app types you've mentioned ... gtk, qt, kdelib ... I don't know what those are. I'm guessing their a programming layer or feature set? Does the copy/paste procedure only work between apps written in the same toolkit?
Quote:
Originally Posted by rickh
Losing the Paste buffer when the original application is closed is typical Linux behaviour. I sure there are workarounds, such as the aforementioned "klipper," but it's not really that big a deal to get used to. If I'm copying multiple items and I want to close the source files, I simply open a text editor window, such as Gedit and save the fragments there temporarily until I have everything I want.
Yep, this has been my experience, and how I've been getting around it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.