Support wayland native copier

This commit is contained in:
Arun Prakash Jana 2020-06-23 20:06:40 +05:30
parent d097b34ccf
commit ee680c1aae
No known key found for this signature in database
GPG Key ID: A75979F35C080412

2
buku
View File

@ -4077,6 +4077,8 @@ def copy_to_clipboard(content):
copier_params = ['xsel', '-b', '-i']
elif shutil.which('xclip') is not None:
copier_params = ['xclip', '-selection', 'clipboard']
elif shutil.which('wl-copy') is not None:
copier_params = ['wl-copy']
# If we're using Termux (Android) use its 'termux-api'
# add-on to set device clipboard.
elif shutil.which('termux-clipboard-set') is not None: