Page 1 of 1
Copy-paste oddity
Posted: 21. Feb 2019, 23:54
by jernst
Running Arch Linux / KDE on VirtualBox on macOS. Clipboard set to bidirectional:
* Copy-paste from Mac to Linux works fine.
* Copy-paste from Linux to Mac works only sometimes. It works reliably when copying from a text editor (Geany). It does not paste anything from many other apps, such as the terminal (Konsole). But, if I copy-paste on the Linux side from Konsole into Geany, and then re-select in Geany and copy paste from there, it arrives on the Mac.
Looking at the clipboard content with xclip does not show any difference between those two scenarios, at least that I can tell.
So, an oddity that sounds like a bug?
Re: Copy-paste oddity
Posted: 22. Feb 2019, 00:04
by socratis
The Shared Clipboard only supports simple text, it's very limited. And as you see it does fine with Geany. Now, I don't know what format the Konsole puts the contents in the clipboard, but it looks like it's not simple (enough) text. Maybe it's a different UTF formatting, maybe it has a BOM or not? I don't know enough...
Re: Copy-paste oddity
Posted: 22. Feb 2019, 00:31
by clouddev
Just as another data point - I have two Linux VMs at different KDE levels with different add-on versions. Copy behavior is as follows:
Copy from Konsole to Mac (Mojave) works on:
Code: Select all
$ konsole -v
Qt: 4.8.6
KDE Development Platform: 4.13.3
Konsole: 2.13.2
Guest additions: 5.0.40
VBox: 6.0.4
Copy from Konsole does not work on the newer VM: (Works from other apps e.g. emacs..)
Code: Select all
$ kdeinit5 --version
Qt: 5.11.1
KDE: 5.50.0
$ konsole -v
konsole 18.04.3
Guest additions 6.0.4
VBox: 6.0.4
Re: Copy-paste oddity
Posted: 22. Feb 2019, 08:13
by socratis
I don't usually quote other messages verbatim, but I'm going to quote an older post hoping that this time it will get more attention, especially from Linux users:
Is there any tool in Linux that allows you to see the contents and kind of the clipboard? I know there's a couple for Windows (
Free Clipboard Viewer,
ClipView,
InsideClipboard) and one for OSX (
ClipboardViewer, Apple source code), but I don't know what's available for Solaris or Linux hosts, something like an X11 clipboard viewer.
If you know of such a tool, please post it here, so that we can examine the clipboard contents. I've heard that "xclip" might do the job...
This was from the thread "
Strange clipboard share in VirtualBox 6 (#18285)". You should also read the threads:
Re: Copy-paste oddity
Posted: 22. Feb 2019, 17:31
by clouddev
This worked for me in Konsole (KDE5/Fedora29). Go to Settings->Edit Current Profile->Mouse tab and un-select "Copy text as HTML". Now I can copy from Konsole to Mac.
Re: Copy-paste oddity
Posted: 22. Feb 2019, 17:49
by socratis
Wait a minute... Konsole has a "copy as HTML" option? What on earth would you copy as HTML? The bold text?
For the love of bytes!!!

Re: Copy-paste oddity
Posted: 22. Feb 2019, 18:02
by clouddev
Bold text, colors, etc. Not sure when you'd really need this. Probably shouldn't be the KDE default in my opinion.
Re: Copy-paste oddity
Posted: 22. Feb 2019, 18:05
by socratis
No kidding! I would never have thought to look into the options of a Terminal to see something like that. What's next? Gedit copying as HTML? "/etc/hosts" having colors?

Re: Copy-paste oddity
Posted: 23. Feb 2019, 00:18
by jernst
If memory serves, this used to work better. I understand the difficulties of matching non-plain-text clipboard implementations, although it did not look to me like that was the issuem, as I checked with xclip.
Would still be nice if it worked in more cases out of the virtual box
