question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TextEditor Copy/Paste is not working under wayland/swaywm

See original GitHub issue

System information:

  • Operating system (distribution) and version

Archlinux, swaywm 1.4, wlroots 0.10.0 wayland 1.18.0

exec environ

ALACRITTY_LOG=/tmp/Alacritty-1205.log
BEMENU_BACKEND=wayland
COLORTERM=yes
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DESKTOP_SESSION=sway
DISPLAY=:0
EDITOR=vim
GDMSESSION=sway
GDM_LANG=en_US.UTF-8
GPG_TTY=/dev/pts/6
HOME=/home/user
I3SOCK=/run/user/1000/sway-ipc.1000.1147.sock
LANG=en_US.UTF-8
LESS_TERMCAP_mb=
LESS_TERMCAP_md=
LESS_TERMCAP_me=
LESS_TERMCAP_se=
LESS_TERMCAP_so=
LESS_TERMCAP_ue=
LESS_TERMCAP_us=
LOGNAME=user
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
MAGICK_OCL_DEVICE=OFF
MAIL=/var/spool/mail/user
PAGER=less
PATH=/opt/google-cloud-sdk/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
PS1=%B%F{red}%(?..%? )%f%b%B%F{blue}%n%f%b@%m %B%40<..<%~%<< %b%# 
PWD=/home/user
PYTHONTRACEMALLOC=1
QT_QPA_PLATFORM=wayland
SHELL=/bin/zsh
SHLVL=2
SWAYSOCK=/run/user/1000/sway-ipc.1000.1147.sock
TERM=screen-256color
TMUX=/tmp//tmux-1000/default,1234,0
TMUX_PANE=%9
TMUX_PLUGIN_MANAGER_PATH=/home/user/.tmux/plugins/
USER=user
USERNAME=user
WAYLAND_DISPLAY=wayland-0
XCURSOR_SIZE=24
XDG_CURRENT_DESKTOP=Unity
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SESSION_CLASS=user
XDG_SESSION_DESKTOP=sway
XDG_SESSION_ID=2
XDG_SESSION_TYPE=wayland
XDG_VTNR=2
_=/usr/bin/env
_JAVA_AWT_WM_NONREPARENTING=1
CLOUDSDK_ROOT_DIR=/opt/google-cloud-sdk
CLOUDSDK_PYTHON=python2
CLOUDSDK_PYTHON_ARGS=-S
GOOGLE_CLOUD_SDK_HOME=/opt/google-cloud-sdk
VDPAU_DRIVER=va_gl
HG=/usr/bin/hg
MOZ_PLUGIN_PATH=/usr/lib/mozilla/plugins
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
LC_MESSAGES=
  • DBeaver version

dbeaver 6.3.5

  • Additional extensions

Connection specification:

  • Database name and version

mysql 5.7

  • Driver name

Driver for MySQL 4.x-5.7

  • Do you use tunnels or proxies (SSH, SOCKS, etc)?

no

Describe the problem you’re observing:

Copy text from chrome-browser by Ctrl+C, cannot paste to TextEditor in Dbeaver.

Steps to reproduce, if exist:

  1. open chrome-browser and copy something
  2. check clipboard status
% wl-paste --list-types
text/plain;charset=utf-8
text/plain
  1. paste in dbeaver text-editor box, paste nothing!

BUT, following Step works 1.

% echo -en "aaaaaa" | wl-copy -t STRING
% wl-paste --list-types
STRING
text/plain
text/plain;charset=utf-8
TEXT
UTF8_STRING
  1. paste into dbeaver is working~!

Include any warning/errors/backtraces from the logs

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:11
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
Hippo0ocommented, Apr 6, 2022

copy/paste from firefox

$ wl-paste --list-types
text/html
text/_moz_htmlcontext
text/_moz_htmlinfo
text/plain;charset=utf-8
text/plain
text/plain;charset=utf-8
text/plain
text/x-moz-url-priv

or from my clipboard manager copyq

$ wl-paste --list-types
text/html
text/plain
application/x-copyq-owner
text/plain;charset=utf-8

do not work for me in version 22

2reactions
atmouse-commented, Apr 20, 2021

@atmouse- is it still actual?

The issue is gone under dbeaver 21 🤝 with wayland 1.19 and swaywm 1.6

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cut and paste : r/swaywm - Reddit
There are still some issues with copy/cut//paste on wayland. ... I've always just selected text and used middle mouse button to paste it....
Read more >
1585393 – Firefox Wayland copy and paste is not working
Description of problem: When I try to copy text from firefox-wayland to another application, the paste buffer is empty.
Read more >
Sway - ArchWiki
Sway is a tiling Wayland compositor and a drop-in replacement for the i3 window manager for X11. It works with your existing i3...
Read more >
Sway - Gentoo Wiki
Sway (contracted from SirCmpwn's Wayland compositor) is an open-source Wayland compositor that is designed to be compatible with the i3 window manager.
Read more >
How to copy text to the clipboard when using Wayland?
There is no restriction on copy to clipboard for xclip but it seems pasting will only work if you've copied something while in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found