scudcloud icon indicating copy to clipboard operation
scudcloud copied to clipboard

X11 primary selection doesn't work with scud

Open zerthimon opened this issue 7 years ago • 11 comments

Latest version on ubuntu 16.04, unity

Try selecting something in some other window and then use a middle mouse button to paste it to scud - it pastes something else.

zerthimon avatar Apr 06 '17 21:04 zerthimon

There is Qt5 doc at https://doc.qt.io/qt-5/qclipboard.html#Mode-enum, maybe we can try force to use the mouse selection. Hope this do not disable the general clipboard.

raelgc avatar Apr 06 '17 22:04 raelgc

Hmm, this used to work previously.

zerthimon avatar Apr 07 '17 08:04 zerthimon

Probably is qt5 (which the latest version is based) handling different. I'll test.

raelgc avatar Apr 07 '17 10:04 raelgc

I actually came here to report exactly this bug. scudcloud always pastes the clipboard, not the primary selection. If I paste into a text editor, then ^C-copy to the clipboard, then scudcloud pastes it. But now I can't paste out of xterm.

shevek avatar Apr 19 '17 01:04 shevek

Pasting out of Scudcloud does not work as an X11-user would expect either. When I right-click on a link and ask for it to be "copied", it is not placed onto the primary. Doing the middle-button paste into browser fails...

Other apps do it -- for example, doing the same in Thunderbird and Firefox, for example, works as expected. This link may be useful...

UnitedMarsupials-zz avatar Jul 11 '17 16:07 UnitedMarsupials-zz

Hi @UnitedMarsupials, thanks for the feedback.

Unfortunately, Scudcloud has no code dedicated to copy and paste: we're using the standard Qt copy & paste functionality.

It was working with both clipboards as intended months ago, but after the past upgrades, Qt changed this.

raelgc avatar Jul 11 '17 16:07 raelgc

There may be some sort of a flag to pass to Qt, perhaps?

UnitedMarsupials-zz avatar Jul 11 '17 16:07 UnitedMarsupials-zz

@UnitedMarsupials If I correctly understood, only when setting data to the clipboard: https://doc.qt.io/qt-5/qclipboard.html#Mode-enum

raelgc avatar Jul 11 '17 16:07 raelgc

Sorry, I'm not a GUI expert at all :-( And I certainly never programmed with Qt -- my sole ventures into GUI were using Tcl/Tk... But this can't be affecting only Scudcloud -- other users of Qt (and/or Python Qt) must've encountered this issue and discussed it. I'm sure, the solution is known by now :)

UnitedMarsupials-zz avatar Jul 11 '17 18:07 UnitedMarsupials-zz

Sorry, any hope for a fix for this? It is really annoying to, when trying to copy-paste from xterm, have to copy into an editor first, and then ctrl-c/ctrl-v from the editor into scudcloud...

UnitedMarsupials-zz avatar Sep 28 '17 16:09 UnitedMarsupials-zz

This problem still exists in v1.6.5 on Fedora 28. Any plans or ideas on fixing this?

maciex avatar Oct 25 '18 11:10 maciex