Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
no copy/paste in xfce4 between Firefox and other X apps
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
caljoe
n00b
n00b


Joined: 07 Aug 2004
Posts: 59

PostPosted: Wed Aug 11, 2004 3:35 pm    Post subject: no copy/paste in xfce4 between Firefox and other X apps Reply with quote

I'm using Xfce4 with a 2.6.7 kernel and Mozilla Firefox 0.9.

If I copy some text in a shell or in emacs, I can't paste it in Firefox form areas.

On the contrary, text copied inside Firefox can be pasted into shell by middle-clicking.

Anybody had this kind of behaviour? I'm curious to know if someone knows a solution to this. Is this a bug?

joe -
Back to top
View user's profile Send private message
30726
Veteran
Veteran


Joined: 24 Sep 2003
Posts: 1501

PostPosted: Wed Aug 11, 2004 3:45 pm    Post subject: Reply with quote

Check this out. If you're too lazy to read it, terminals like aterm uses the primary selection, and that content can be pasted by using the middle mouse button. If you use the clipboard selection in an applications (right click, copy), you can't paste that into an terminal that doesn't support the clipboard selection. So in order to copy and paste text into terminals like aterm, you can only use the primary selection (select text to copy, middle click mouse to paste).
Back to top
View user's profile Send private message
caljoe
n00b
n00b


Joined: 07 Aug 2004
Posts: 59

PostPosted: Wed Aug 11, 2004 4:05 pm    Post subject: Reply with quote

thanks for the reference

so if I understand well, firefox exclusively uses the clipboard whereas my xterm uses the primary selection.

The question is: how do I copy some text from a xterm (or an aterm) into the primary selection?

I tried to look into the menus of xterm (those that appear with Ctl+Click), but I don't see anything like a good old 'copy' option...

this is pretty annoying when copy/pasting some logs or code on a forum like this one...

joe -
Back to top
View user's profile Send private message
30726
Veteran
Veteran


Joined: 24 Sep 2003
Posts: 1501

PostPosted: Wed Aug 11, 2004 6:26 pm    Post subject: Reply with quote

You almost got it right. XTerm only uses the primary selection, while Firefox can use both. However, since you can only copy text from XTerm into the primary selection, you need to paste it from the primary selection into Firefox as well. The two selections are completely separate, so don't confuse the two.

The only way to copy something in XTerm to Firefox, is to select it with the mouse, and then middle click with the mouse to paste it in Firefox.
Back to top
View user's profile Send private message
caljoe
n00b
n00b


Joined: 07 Aug 2004
Posts: 59

PostPosted: Wed Aug 11, 2004 6:29 pm    Post subject: Reply with quote

Got it!

Thanks!!!!

(it will be much more easy now than rewriting the whole text.... ;) )
Back to top
View user's profile Send private message
30726
Veteran
Veteran


Joined: 24 Sep 2003
Posts: 1501

PostPosted: Wed Aug 11, 2004 6:29 pm    Post subject: Reply with quote

Dunno if I was clear or not, but here's a more simplified answer.

If you select the text in this post in Firefox, you have already copied it into the primary selection (which XTerm uses). If you select it and select copy from the menu (or Ctrl+c like in Windows), it goes into the clipboard selection (which XTerm can't see, but most if not all GUI apps can use by simply selecting paste from the menu or using Ctrl+v like in Windows).

EDIT: :oops:
Back to top
View user's profile Send private message
caljoe
n00b
n00b


Joined: 07 Aug 2004
Posts: 59

PostPosted: Wed Aug 11, 2004 6:40 pm    Post subject: Reply with quote

Quote:
Dunno if I was clear or not, but here's a more simplified answer.


you were perfectly clear!!!

I'm already using this every minute! ;-)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum