LOUDO56/PyMacroRecord

Missing pynput support for Linux-Wayland

Opened this issue · 3 comments

Many common linux distributions use Wayland as GUI backend.

The recording and keyboard-output works, but the mouse-movement and -clicks are not executed. No error is visible. No exception occurrs.

It seems the pynput project does not support it:
moses-palmer/pynput#331

The same seems to be true for pyautogui:
asweigart/pyautogui#111

From the comments I've read that the evdev can be used in that case.

I will test it and report back.

Have not yet seen an implementation that does not need root privileges.
The yDoTool (https://docs.o-x-l.com/automation/ydotool.html) looks OK for me. But I'll test further..

Yeah... the pre-compiled version of yDoTool also has some major bugs :(

Note: Found out that the mouse position from pynput is also incorrect