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

Add 'XDG_SESSION_TYPE' check #153

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hereGittyGitty
Copy link

Choose the program 'wl-copy' that is used to copy a selection to the
clipboard by checking the value of the environment variable
'XDG_SESSION_TYPE' in addition to the pure existence of the 'wl-copy'
executable.

Choose the program 'wl-copy' that is used to copy a selection to the
clipboard by checking the value of the environment variable
'XDG_SESSION_TYPE' in addition to the pure existence of the 'wl-copy'
executable.
@kugel-
Copy link

kugel- commented Jan 3, 2022

Thanks for this fix. Works for me.

In addition, I have found that @yank_selection is ignored for wayland. But since wl-copy supports the --primary option this can be supported.

middle-click to paste seems to do "wl-paste -p" so clipboard doesn't easily work for me.

@kugel-
Copy link

kugel- commented Jan 3, 2022

@bruno- This, alternatively #131, should be merged asap. Who can do that?

@kugel-
Copy link

kugel- commented Jan 3, 2022

stackoverflow research suggests that XDG_SESSION_TYPE' is not truly reliable and WAYLAND_DISPLAY` should be checked instead. So #131

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

Successfully merging this pull request may close these issues.

2 participants