LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 05-02-2007, 02:11 PM   #1
SlowCoder
Senior Member
 
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Debian based
Posts: 1,250

Rep: Reputation: 164Reputation: 164
Copy/Paste operation after window closed?


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.

Is there a way to fix this?
 
Old 05-02-2007, 02:16 PM   #2
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
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?).
 
Old 05-02-2007, 06:08 PM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
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.
 
Old 05-02-2007, 07:05 PM   #4
SlowCoder
Senior Member
 
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Debian based
Posts: 1,250

Original Poster
Rep: Reputation: 164Reputation: 164
Quote:
Originally Posted by osor
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.
 
Old 05-02-2007, 07:21 PM   #5
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
Let me be a bit more descriptive of my questions:
  1. 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.
  2. 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.
 
Old 05-07-2007, 11:27 AM   #6
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
Did you figure this one out?
 
Old 05-07-2007, 11:36 AM   #7
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
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.
 
Old 05-07-2007, 01:03 PM   #8
Sonneteer
Member
 
Registered: May 2006
Location: Canada
Distribution: Slackware 13.37; Ubuntu 12.04
Posts: 81
Blog Entries: 5

Rep: Reputation: 15
For GNOME you can get Glipper.
 
Old 05-07-2007, 07:06 PM   #9
SlowCoder
Senior Member
 
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Debian based
Posts: 1,250

Original Poster
Rep: Reputation: 164Reputation: 164
Quote:
Originally Posted by osor
Did you figure this one out?
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.
 
  


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
What is with copy and paste? General General 16 12-23-2005 06:37 PM
copy/paste help abk4523 Linux - Newbie 4 05-31-2005 06:29 AM
how to copy and paste acd copy cd paschim Linux - General 2 04-05-2004 09:25 AM
Copy/Paste jcb_dreamvsat Linux - Software 12 06-18-2003 02:23 AM
Copy and Paste? cli_man Linux - General 11 05-16-2003 04:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:53 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