You are not logged in.

1

Monday, February 7th 2005, 10:13pm

KDE cut and paste w/ VNC

Hi All,

This has been bugging me forever, and I can't figure out how to fix it, so I'm wondering if anyone else has found a solution.

Some background:
I'm running a KDE session on a linux box via VNC. I'm then accessing that VNC session from a Window's machine using VNC Viewer .
Running versions:
3.1.3-64 Red Hat of KDE.
3.3.7 of vncserver
4.0 of vncviewer

The problem:
If I am using Konsole as my terminal in KDE, anything I select there into the copy/paste buffer, does not get "passed" out to my Window's copy/paste buffer. I.e. if I select a block of text in my VNC session, and then want to paste it into a Window's app (like Word) or something using Control-V, it does not work.

However, if I use just a plain old xterm as my terminal in KDE, I *can* do this. Whatever I select, gets passed right on to the Window's buffer and I can paste it into any of my Window's apps.

I'd much prefer to use Konsole since it has lots of cool bells and whistles, but this is totally annoying me to death.

Is there some option or swtich I am missing or something to get this to work? Maybe I'm doing something totally stupid? ?(

Thanks in advance!

2

Tuesday, February 8th 2005, 9:11am

RE: KDE cut and paste w/ VNC

Quoted

Originally posted by anirate
The problem:
If I am using Konsole as my terminal in KDE, anything I select there into the copy/paste buffer, does not get "passed" out to my Window's copy/paste buffer. I.e. if I select a block of text in my VNC session, and then want to paste it into a Window's app (like Word) or something using Control-V, it does not work.
This sound rational for me: if you copy it, you copy it on the KDE-box, and thus in the KDE buffer. Windows only provide a way of interacting with the KDE-box.

But why use vnc to access a console? It means that a lot of visual information have to be transmitted during the session, while you only use simple text. If you use ssh, only text is send (encrypted), and Windows takes care of displaying the text. That means that you can select and copy-paste it (I guess).

BTW I never used vnc.

anda_skoa

Professional

Posts: 1,273

Location: Graz, Austria

Occupation: Software Developer

  • Send private message

3

Tuesday, February 8th 2005, 5:53pm

RE: KDE cut and paste w/ VNC

Quoted

Originally posted by anirate
If I am using Konsole as my terminal in KDE, anything I select there into the copy/paste buffer, does not get "passed" out to my Window's copy/paste buffer. I.e. if I select a block of text in my VNC session, and then want to paste it into a Window's app (like Word) or something using Control-V, it does not work.


If you only select it, it is only in the SELECTION clipboard (pastable by middle mouse click).
Very likely VNC only accesses the PRIMARY clipboard, where the usual copy actions copy to (CTRL+C, "Copy" from context menu)

Try to copy the selected text using "Copy" from the context menu (right button menu).

Quoted


However, if I use just a plain old xterm as my terminal in KDE, I *can* do this.

xterm is "broken" (just very old) in this respect and overwrites even PRIMARY clipboard on selection.

Cheers,
_
Qt/KDE Developer
Debian User

4

Wednesday, February 9th 2005, 5:28pm

RE: KDE cut and paste w/ VNC

Quoted

Originally posted by anda_skoa
If you only select it, it is only in the SELECTION clipboard (pastable by middle mouse click).
Very likely VNC only accesses the PRIMARY clipboard, where the usual copy actions copy to (CTRL+C, "Copy" from context menu)

Try to copy the selected text using "Copy" from the context menu (right button menu).


So, I tried using the "copy" command from the context menu as suggested, and that still did not seem to work. :( Maybe the problem isn't w/ Konsole, but with Kilpper?

Quoted

Originally posted by mart_k
But why use vnc to access a console? It means that a lot of visual information have to be transmitted during the session, while you only use simple text. If you use ssh, only text is send (encrypted), and Windows takes care of displaying the text. That means that you can select and copy-paste it (I guess).


I use VNC b/c I am at work, and the Linux box I am running on is in a computer farm some where away from my actual desk. A simple text ssh session is not adequate b/c of the type of work I have to do. Running exceed or cygwin amd just exporting the DISPLAY would be an option, but the benefit of VNC is that I can keep my workspace the same no matter where I connect from. I.e. if I am working on something at work, when I go home, I can connect to VNC and see the *exact* same thing from home. It rocks. :) (...except for this copy/paste thing... sigh ;( )

anda_skoa

Professional

Posts: 1,273

Location: Graz, Austria

Occupation: Software Developer

  • Send private message

5

Thursday, February 10th 2005, 11:02pm

RE: KDE cut and paste w/ VNC

Quoted

Originally posted by anirate
So, I tried using the "copy" command from the context menu as suggested, and that still did
not seem to work. :( Maybe the problem isn't w/ Konsole, but with Kilpper?

Could be, try with no Klipper and also try a different application, for example KWrite.

Cheers,
_
Qt/KDE Developer
Debian User

Posts: 2

Occupation: Technical Support Engineer

  • Send private message

6

Thursday, November 16th 2006, 6:55pm

I am having a similar issue with several other Applications, some that I can't name.

Here is one setup I know can be reproduced:
Using x2x (a program that allows you to connect from one X session to another X session on another machine).

I do a SELECTION on Machine A, the Middle mouse click on Machine B in ANY KDE window, and no paste occurs.
Here is the error I get:
X Error: BadAtom (invalid Atom parameter) 5
Major opcode: 17
Minor opcode: 0
Resource id: 0x958e9fd9


Now, if I use gnome-terminal, vim (in a gnome-terminal), gvim, emacs (in a gnome-terminal). It works fine.

Looking in the Xsession file, I see the same error I get in the Konsole.

But overall, it looks to be all items related to KDE that get this wierd behavior.

I have reproduced the error on 32-bit and 64-bit.
Now, I think its a bug, but also maybe a feature that can be turned on and off that is causing the problem. I have a co-worker that has a different environment setup and things work fine for him. We are currently debugging the problem.

But in short, this is Defiantly a KDE thing as the problem goes away when I use non-KDE apps. Even logging in under gnome then launching Konsole produces the same behavior.

alnashif

Beginner

Posts: 2

Location: Tucson, Arizona, US

  • Send private message

7

Friday, November 17th 2006, 4:35am

It works

Reply to the original post, go to klipper configuration and choose "sync. contents of the clipborad and the selection", I have FC6 and kde 3.5.5. That solved the problem for me.

Posts: 2

Occupation: Technical Support Engineer

  • Send private message

8

Friday, November 17th 2006, 5:18pm

RE: It works

That kinda works, but does not solve the problem.

Turing it on, gives many error (repeating) over and over, in stead of just once when I click the middle mouse button.

This also creates a problem, if I copy (Ctrl+C) and then Select Text and try to paste, it becomes messy, as selecting text to replace gets killed by the "sync".

Not a good work-around, I would prefer a KDE fix, as it worked in I think KDE 3.1, something was added or deleted (not sure what) and broke the copy & paste selection with some applications.

alnashif

Beginner

Posts: 2

Location: Tucson, Arizona, US

  • Send private message

9

Friday, November 17th 2006, 5:36pm

RE: It works

My relpy was just for the original post, and if it is a problem in KDE then that wouldn't have worked on any machine.