Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to copy text outside of the editor app #12

Closed
rythmkraze opened this issue Nov 9, 2018 · 10 comments
Closed

Unable to copy text outside of the editor app #12

rythmkraze opened this issue Nov 9, 2018 · 10 comments

Comments

@rythmkraze
Copy link

I am unable to copy text from the editor app and paste it onto any other application. Copy/Paste however works fine within the editor app.

@jmigpin
Copy link
Owner

jmigpin commented Nov 9, 2018

I'm unable to reproduce this here. Whats your output of: "xdpyinfo | grep -i version"?

Do both Ctrl+c/Ctrl+v, as well as the linux select text + middle click to paste, don't work?

@rythmkraze
Copy link
Author

$ xdpyinfo | grep -i version
version number:    11.0
X.Org version: 1.19.6

Yes both Ctrl+c/Ctrl+v as well as the linux select text + middle click to paste does not work from the editor app to any other app. However they work in the reverse direction, i.e from any other app to the editor app.

I am on

elementary OS 5.0 Juno(64 bit)
Built on Ubuntu 18.04 LTS
Linux Kernel 4.15.0-38-generic

@jmigpin
Copy link
Owner

jmigpin commented Nov 17, 2018

@rythmkraze It's unlikely that your problem got solved by the 9c340eb commit, but the editor will now show a message if the requested copy atom is not supported.

@rythmkraze
Copy link
Author

It appears like I can now copy/paste using Ctrl-C/Ctrl-V into some applications like the code text editor and the epiphany browser address bar. However the context menu continues to indicate that the paste clipboard is empty, so its weird.

Also on the epiphany browser I can only paste into the address bar and not into any forms inside the webpage. For example I am unable to paste into this Github issue form.

Pasting into other applications like the terminal still does not work.

@rythmkraze
Copy link
Author

rythmkraze commented Nov 18, 2018

Ok.
No error message pasting into the browser address bar(paste WORKS)
No error message pasting into form inside a webpage(paste FAILS)
No error message pasting into terminal application(paste FAILS)

However I get the following error message when pasting into the code text editor eventhough the paste works(paste WORKS)

error: cpcopy: non-standard external request for type 526 "GTK_TEXT_BUFFER_CONTENTS"

@jmigpin
Copy link
Owner

jmigpin commented Nov 18, 2018

I can replicate the paste not working on forms in the epiphany browser. Going to take a look at this tomorrow.

jmigpin added a commit that referenced this issue Nov 19, 2018
@jmigpin
Copy link
Owner

jmigpin commented Nov 19, 2018

The epiphany browser issue got fixed by c76a818. Hopefully other applications work now as well.

@rythmkraze
Copy link
Author

:) Thank you. I confirm that Ctrl-C/Ctrl-V works across all applications that I had earlier had issues with.

However I see that the select text + middle click to paste works only in webpage forms(epiphany browser) but does not work on the address bar and neither does it work for any other apps such as the code text editor and the terminal.

jmigpin added a commit that referenced this issue Nov 20, 2018
…of using predefined value (possible that some x servers define it with other values. Improves #12).
@rythmkraze
Copy link
Author

error while copying to the Polari irc chat client.

error: cpcopy: non-standard external request for type 519 "text/uri-list"
error: cpcopy: non-standard external request for type 568 "image/png"
error: cpcopy: non-standard external request for type 598 "image/jpeg"
error: cpcopy: non-standard external request for type 599 "image/gif"
error: cpcopy: non-standard external request for type 600 "image/bmp"

@jmigpin
Copy link
Owner

jmigpin commented Jan 28, 2019

Those debug errors msgs have been removed.

Elementary OS has apps that don't use the "middle-click" copy/paste. This seems to be by design.

For example: selecting from a terminal and "middle-click" paste into epiphany address bar doesn't work. On the other hand, it works if inside the same terminal window, but it doesn't to a different terminal window. So this isn't a specific issue with the editor since it works fine in other distros.

More specifically, the X11 "primary" selectionRequest event is not being received by the owner of the data. But it is getting received for the "clipboard" selection. So again, this seems to be by design.

Ctrl+C/Ctrl+V works as intended.

@jmigpin jmigpin closed this as completed Jan 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants