! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
clipboard manager over-eager for clipboard contents
Status:
RESOLVED: FIXED
Product:
Xfce4-settings
Component:
Clipboard Manager

Comments

Description David De La Harpe Golden 2011-05-17 19:45:53 CEST
xfce4-settings-helper's clipboard manager seems to be eagerly making copies of clipboard contents. This causes quite a bit of traffic, especially visible with a client that can intentionally rapidly mutate clipboard, like emacs. See emacs-devel thread at [1] for more discussion.

The overhead would be fairly unsurprising for a full history-keeping clipboard manager, but is heavy for a minimal default one as I imagine the xfce4 one is intended to be.  The behaviour is in contrast to the small clipboard manager in gnome's gnome-settings-daemon, that clients can ask for their clipboards to be saved at exit via the fd.o spec [2] SAVE_TARGETS mechanism - that manager does not eagerly copy the full clipboard contents from the owner each time.

So could xfce4-settings-helper's clipboard manager be made less eager? Either for all clients, or at least for clients showing the SAVE_TARGETS "marker target" mentioned in the spec - it can be assumed that at least those clients do know to ask if they want the clipboard contents saved on exit if they exit while owning the clipboard. (in the latter case, then at least once emacs is actually patched to follow the spec, the overhead wouldn't be there).

[1] http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00296.html
[2] http://www.freedesktop.org/wiki/ClipboardManager
Comment 1 Nick Schermer editbugs 2011-05-17 20:23:02 CEST
Already fixed in master (same manager as in gsd as you suggested) for other bugs. Will be a new stable release for this soon.
Comment 2 Liviu Mirea 2011-06-09 08:38:29 CEST
I think this bug is also the cause of another problem: I cannot copy-paste stuff from KeePass2 (a Mono application) to itself or to another program. Killing the xfce4-settings-helper immediately solves the problem. I has no similar issues in Ubuntu or Kubuntu.

I don't know if I should file a new bug report because the issue seems strongly related to this one.
Comment 3 Mike Massonnet editbugs 2011-06-09 17:49:42 CEST
The fix has been released in xfce4-settings latest version 4.8.2.

Bug #7633

Reported by:
David De La Harpe Golden
Reported on: 2011-05-17
Last modified on: 2011-06-09

People

Assignee:
Jérôme Guelfucci
CC List:
2 users

Version

Attachments

Additional information