This service will be undergoing maintenance at 00:00 UTC, 2017-10-23 It is expected to last about 30 minutes
Bug 153989 - Automatic copy of local selections doens't work with some programs like gvim or mozilla
Automatic copy of local selections doens't work with some programs like gvim ...
Product: Fedora
Classification: Fedora
Component: vnc (Show other bugs)
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Adam Tkac
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2005-04-06 10:29 EDT by Adrian
Modified: 2013-04-30 19:33 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-10-17 04:34:56 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Adrian 2005-04-06 10:29:23 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; es-ES; rv:1.7.6) Gecko/20050323 Fedora/1.7.6-1.3.2

Description of problem:
When I make a selection of text from some local programs (for example, from gvim or mozilla), the selection should be sent to the remote host, since I have enabled these vnc options: (by pressing F8 in the vnc window, and then selecting "Options")

* Send clipboard to server.
* Send primary selection & cut buffer as clipboard.

But text is not sent.

With other local programs (for example, from gnome-terminal) the thing works.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Open a local gvim (or mozilla) window. Open a vnc window to a remote host.
2. Select some text in the gvim window. 
3. Try to paste (ctrl+v or Edit>Paste) into a remote text field (for example, into  Notepad in Windows).

Actual Results:  The text hasn't been copied.

Expected Results:  The text should have been copied.

Additional info:

The text is copied if it is selected from some other programs, like gnome-terminal.

Using packets updated with yum:

Comment 1 Tim Waugh 2005-04-06 11:22:22 EDT
I have seen this problem occasionally but had been unable to pin it down to a
particular set of applications.

The problem I see here is that the copy buffer *is* set on the viewer end once,
but not subsequently.
Comment 2 Adrian 2005-04-07 05:58:51 EDT
Thanks Tim.

I know nothing on how vnc or X11 work, but I can imagine that a good way to
auto-copy from local selections would be (supposing that events are available):

* vnc registers itself as a listener for the x11_clipboard_has_changed (or
similar) event.
* when the event is received, vnc copies the local clipboard to the remote

If events are not available, a solution could be to copy the local clipboard to
the remote clipboard when the vnc window is selected (or activated, or enabled -
don't know the exact word).

I've seen that I can select and paste (with the mouse middle button) from gvim 
to gnome-terminal and from gnome-terminal to gvim, so probably the problem is
not in the programs nor in the local clipboard. Seems to be something in the way
vnc manages the thing.
Comment 3 Matthew Miller 2006-07-10 17:16:01 EDT
Fedora Core 3 is now maintained by the Fedora Legacy project for security
updates only. If this problem is a security issue, please reopen and
reassign to the Fedora Legacy product. If it is not a security issue and
hasn't been resolved in the current FC5 updates or in the FC6 test
release, reopen and change the version to match.

Thank you!
Comment 4 Adam Tkac 2006-10-11 11:44:54 EDT
Please try to reproduce this bug with latest vnc in FC5
Comment 5 Adam Tkac 2006-10-17 04:34:56 EDT
closing, fc3 isn't supported now

Note You need to log in before you can comment on or make changes to this bug.