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

Changing xclip to xsel for Linux #90

Open
verysure opened this issue Mar 21, 2018 · 2 comments
Open

Changing xclip to xsel for Linux #90

verysure opened this issue Mar 21, 2018 · 2 comments

Comments

@verysure
Copy link

verysure commented Mar 21, 2018

First of all, thanks for the awesome app.

I encountered similar issues on disappearing newlines to issue #21 . After some digging, I think the reason is xclip (see link below). It seems to be a bug with xclip, which I cannot not find any solution online.
https://unix.stackexchange.com/questions/384086/why-does-xclip-copied-text-pasted-into-gmail-on-firefox-turn-line-breaks-into-sp

Another alternative is xsel. By replacing xclip -selection clipboard to xsel --clipboard, I was able to correctly paste to gmail (and google doc).

This should be a fairly easy fix and I can submit a pull request. However, I would like to know different opinions since it changes dependencies.

@cknadler
Copy link
Owner

Hey verysure,

Thanks for the bug report! Do you know if xsel is standard on Linux installs? Seems like a reasonable solution if it is, I'm just worried about compatibility. I'm not currently using Linux, so if anyone else is, feel free to comment with suggestions.

@verysure
Copy link
Author

Hi cknadler,

Yeah, that's also the issue for submitting dependency changes for Linux. I know kubuntu 17.10 works and the package seems to exist in major repositories. Maybe putting it in FAQ as a suggestion is enough?

(also, I find that a more robust change is xsel --input --clipboard, xsel doesn't pick up for some hotkey managers)

Thanks!

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