wtype icon indicating copy to clipboard operation
wtype copied to clipboard

Failed to deencode argv

Open redwill17 opened this issue 2 years ago • 2 comments

I installed wtype in order to use it alongside https://github.com/marty-oehme/bemoji, which supposedly can send the emoji output to wtype

But it doesn't do anything, and typing wtype \360\237\230\255 or any number code for any emoji will throw Failed to deencode input argv. Is this intended behavior? Do I have a way to type emojis? It shows the same error if I run bemoji in a terminal

redwill17 avatar Apr 14 '24 22:04 redwill17

Edit: See below comment.

I'm having the same issue using wofi-emoji. Both scripts (using wtype in bash, which is what wofi-emoji is) and using the program outright e.g. `wtype 💜` in my shell (nushell) fails with the same error.

Related:

  • https://github.com/dln/wofi-emoji/issues/11
  • https://github.com/fdw/rofimoji/issues/164
  • https://github.com/dln/wofi-emoji/pull/10

For now my solution has to be to simply manually patch any tool relying on wtype to instead go directly to wl-clipboard copy/paste.

selvmaya avatar May 29 '25 00:05 selvmaya

I managed to fix it on my end by making sure locales were set up correctly. I had ran locale-gen, but had not noticed it did not succeed because I didn't run it as root on this PC. After running it properly (sudo locale-gen) and having locale -a show the layouts I expected e.g. en_US and da_DK, wtype now recognizes (and can type) emojis.

Hope this helps someone else!

selvmaya avatar May 29 '25 02:05 selvmaya