|
|
Subscribe / Log in / New account

Stormy Peters: What should the GNOME Foundation accomplish in 2010?

Stormy Peters: What should the GNOME Foundation accomplish in 2010?

Posted Jan 28, 2010 21:20 UTC (Thu) by BenHutchings (subscriber, #37955)
In reply to: Stormy Peters: What should the GNOME Foundation accomplish in 2010? by drag
Parent article: Stormy Peters: What should the GNOME Foundation accomplish in 2010?

Since most distributions ship Firefox as the default browser for Gnome they are shipping a broken clipboard implementation. Sure if you just use 'Gnome' applications then everything is great, but that is almost never the default.

Under the X clipboard protocol, 'copying' marks the clipboard as owned/provided by the source client, but nothing is copied until you paste and the destination client requests the contents. The major benefit of this is that the source client can offer multiple formats but only generate and transfer them to the server as needed. The downside, as you've seen, is that pasting does not work after the source client exits. It may appear to work when GNOME Terminal is the source, but that is because all Terminal windows are now owned by the same client process.

The only way I can see to solve this is for the server to request all source formats immediately and then respond to paste requests itself. This could be very inefficient in the case of complex formats, particularly if client and server are on different systems.


to post comments

Stormy Peters: What should the GNOME Foundation accomplish in 2010?

Posted Jan 28, 2010 22:57 UTC (Thu) by nix (subscriber, #2304) [Link]

There's another possible workaround usable by a set of programs sharing
one client library (e.g. GNOME, or KDE). When the owner of the clipboard
(or, I suppose, the selection) terminates, it sends the supported formats
to some persistent daemon whose job it is to take ownership in this
situation, and hand things on. If the size of all supported formats is
large, the application could request user confirmation and throw away the
clipboard/selection if the user requests.

This is not rocket science: Word for Windows 1.0 could do it back in the
early/mid 90s.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds