atx / wtype

xdotool type for wayland
MIT License
347 stars 13 forks source link

Compositor does not support the virtual keyboard protocol #45

Open richo67 opened 1 year ago

richo67 commented 1 year ago

Hello I am running latest Manjaro GNOME 43.1 Wayland. When running following script I am getting error Compositor does not support the virtual keyboard protocol

#!/bin/sh
wtype type $(date +%R)

As I am rather new and only thing I want is that I insert current time in my editor while I am typing, I am not sure what I am doing wrong. Thank you for your kind help

BenediktBroich commented 1 year ago

I do get the same error on nixos 22.11 with GNOME 43.2 Wayland. It would be nice to have a --version command. readlink -f $( which wtype ) does state it is wtype version 0.4.

richo67 commented 1 year ago

Not sure what your command readlink -f $( which wtype ) suppose to do, but from installation information I see it is 0.4 I am using ydotool now instead this. Works fine. -r-

stolk commented 1 year ago

On Ubuntu 22.10 running gnomeshell-mutter wayland:

$ wtype ctrl+t
Compositor does not support the virtual keyboard protocol
lostallmymoney commented 1 year ago

Same issue here : sudo wtype test error: XDG_RUNTIME_DIR is invalid or not set in the environment. Wayland connection failed

or

wtype test Compositor does not support the virtual keyboard protocol

Philetjosie commented 1 year ago

Same here with Ubuntu 22.10: wtype type 'Hello world'
Compositor does not support the virtual keyboard protocol

Therefore, I can not use it with nerddictation.

lidgnulinux commented 1 year ago

It will be better to close this issue, since the problem is obvious. The compositor needs to implement the virtual keyboard protocol in order to make wtype works.

vemonet commented 1 year ago

This issue is important for potential users who are facing it. Which are the majority of wtype users since wtype does not seems to work with a lot of major linux desktop distro (fedora, ubuntu with gnome)

Having the same problem here with fedora 38 / gnome 44 / Mutter composer

If someone could recommend a Compositor that works with wtype that would be nice, and add this info to the README: which compositors wtype works with? Which compositors it does not work with? Add a pointer to install a compositor that works with wtype

Note that it is really hard to find and read documentation from composer, as it is highly fragmented, and most people trying to use wtype will probably not be composer experts. For example if I take Mutter, the composer for Gnome shell: https://gitlab.gnome.org/GNOME/mutter all the docs we get is:

The API documentation is available at: Meta: https://gnome.pages.gitlab.gnome.org/mutter/meta/ Clutter: https://gnome.pages.gitlab.gnome.org/mutter/clutter/ Cally: https://gnome.pages.gitlab.gnome.org/mutter/cally/ Cogl: https://gnome.pages.gitlab.gnome.org/mutter/cogl/ CoglPango: https://gnome.pages.gitlab.gnome.org/mutter/cogl-pango/

No idea what those APIs goals are, we need to click on everyone of them and study them to understand what are they purpose, and maybe hope to figure out if it supports the virtual keyboard protocol