PyMacroRecord icon indicating copy to clipboard operation
PyMacroRecord copied to clipboard

Missing pynput support for Linux-Wayland

Open superstes opened this issue 1 year ago • 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: https://github.com/moses-palmer/pynput/issues/331

The same seems to be true for pyautogui: https://github.com/asweigart/pyautogui/issues/111

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

I will test it and report back.

superstes avatar Nov 21 '24 19:11 superstes

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..

superstes avatar Nov 21 '24 21:11 superstes

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

superstes avatar Nov 21 '24 22:11 superstes

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

superstes avatar Nov 22 '24 21:11 superstes