Page 1 of 1
[0.12.21] [Oxyd] copy/paste still broken on Linux
Posted: Wed Jan 06, 2016 3:23 pm
by prg
Re: [0.12.21] copy/paste still broken on Linux
Posted: Wed Jan 06, 2016 3:50 pm
by Oxyd
Can't reproduce.
Re: [0.12.21] copy/paste still broken on Linux
Posted: Wed Jan 06, 2016 4:32 pm
by prg
Okay, just tried on a different system and it's indeed working fine there, but I also just tried it on older versions (.3 and .19) and it was already working with those. Copy/paste was and still is broken on my desktop.
Re: [0.12.21] copy/paste still broken on Linux
Posted: Wed Jan 06, 2016 6:42 pm
by Oxyd
Peculiar. When I tried the steps from your previous report in 0.12.20, it was indeed buggy as you described – I wouldn't have been able to fix it otherwise. Maybe there's something specific about your desktop that makes copy&paste not work?
Re: [0.12.21] copy/paste still broken on Linux
Posted: Wed Jan 06, 2016 11:35 pm
by prg
Did some more testing and it's getting weird now. Thought it might be an issue of KDE (desktop, broken) vs. plain Openbox (notebook, working) so I tried running Factorio inside Openbox on my desktop and... it was working. At first. Kept copy/pasting stuff around for a while and it happened again. Tried the same on my notebook and now it's happening there too. If I just keep pressing ctrl+v once things get wedged I sometimes get garbage like boxes or centered dots instead of the text I copied. But no idea how to reliably trigger it...
Re: [0.12.21] copy/paste still broken on Linux
Posted: Wed Jan 06, 2016 11:48 pm
by Oxyd
Hm, I see. Do you have klipper enabled in your KDE install? That might interfere with things, causing the bug to surface.
Re: [0.12.21] copy/paste still broken on Linux
Posted: Wed Jan 06, 2016 11:59 pm
by prg
Already tried without klipper, didn't make a difference. Also wouldn't explain why I'm seeing the issue in plain Openbox now.
Re: [0.12.21] copy/paste still broken on Linux
Posted: Fri Mar 04, 2016 10:55 am
by kovarex
Is there any change in this topic? I don't use linux and can't try it out, so It is up to you guys, either solve it, or put it to 1/0 magic.
Re: [0.12.21] [Oxyd] copy/paste still broken on Linux
Posted: Fri Mar 04, 2016 10:59 am
by prg
Still broken in 0.12.25.
Re: [0.12.21] [Oxyd] copy/paste still broken on Linux
Posted: Wed Mar 16, 2016 12:51 pm
by Oxyd
Okay, let's see if you can reproduce this in 0.12.27.
Re: [0.12.21] [Oxyd] copy/paste still broken on Linux
Posted: Sat Mar 19, 2016 1:04 am
by pcmaster160
It works for me now on Arch Linux on version 0.12.27, hasn't worked for quite a while IIRC.
Re: [0.12.21] [Oxyd] copy/paste still broken on Linux
Posted: Sat Mar 19, 2016 2:47 pm
by Demosthenex
Remember X11 has two clipboards! I frequently copy code from Emacs to paste, and i have to run "xsel | xsel -b" to copy one clipboard buffer to the other so that paste works in Factorio. It's not unique having the issue, many cross platform applications don't properly understand the two clipboards.
Re: [0.12.21] [Oxyd] copy/paste still broken on Linux
Posted: Sat Mar 19, 2016 2:54 pm
by Oxyd
Demosthenex wrote:Remember X11 has two clipboards! I frequently copy code from Emacs to paste, and i have to run "xsel | xsel -b" to copy one clipboard buffer to the other so that paste works in Factorio. It's not unique having the issue, many cross platform applications don't properly understand the two clipboards.
It actually only has one clipboard – or rather what it calls CLIPBOARD. Then it has PRIMARY and SECONDARY – nobody ever uses SECONDARY, so far as I know. PRIMARY is the thing text goes to when you select it, and it is the thing text comes out of when you middle click.
We don't support PRIMARY (let alone SECONDARY) and we have no intention to support it.
Edit: Also, not sure what exactly you're doing, but when I select something in Emacs and copy it by pressing M-w, I can C-v it in Factorio just fine. Likewise, selecting text in Factorio, C-c, then C-y in Emacs pastes it correctly.
Re: [0.12.21] [Oxyd] copy/paste still broken on Linux
Posted: Sat Mar 19, 2016 3:41 pm
by Demosthenex
Oxyd wrote:Demosthenex wrote:Remember X11 has two clipboards! I frequently copy code from Emacs to paste, and i have to run "xsel | xsel -b" to copy one clipboard buffer to the other so that paste works in Factorio. It's not unique having the issue, many cross platform applications don't properly understand the two clipboards.
It actually only has one clipboard – or rather what it calls CLIPBOARD. Then it has PRIMARY and SECONDARY – nobody ever uses SECONDARY, so far as I know. PRIMARY is the thing text goes to when you select it, and it is the thing text comes out of when you middle click.
We don't support PRIMARY (let alone SECONDARY) and we have no intention to support it.
Edit: Also, not sure what exactly you're doing, but when I select something in Emacs and copy it by pressing M-w, I can C-v it in Factorio just fine. Likewise, selecting text in Factorio, C-c, then C-y in Emacs pastes it correctly.
So I am simplifying the issue, I agree there are layers. In default X11 without a desktop shell (no GNOME, no KDE) there is no synchronization between clipboard and primary. So when I M-w to copy in Emacs, I use "xsel | xsel -b" to sync from one clipboard to the other. I didn't find this unusual because I deal with this with Virtualbox and other apps.
I thought perhaps their issue was related and they could try the xsel trick.