ReimuNotMoe / ydotool

Generic command-line automation tool (no X!)
GNU Affero General Public License v3.0
1.36k stars 77 forks source link

Unable to connect to X server #202

Open leath-dub opened 1 year ago

leath-dub commented 1 year ago

I am on wayland ( Hyprland ) and when I run sudo ydotoold I get

Socket path: /tmp/.ydotool_socket
Socket permission: 0600
READY
Authorization required, but no authorization protocol specified

Unable to connect to X server
ElectricRCAircraftGuy commented 1 year ago

If you follow my tutorial does it work for you?

See https://github.com/ReimuNotMoe/ydotool/issues/207#issue-1762095867

imyxh commented 10 months ago

Same issue. Used to work for me on sway and am now getting this error, even with su.

EDIT: huh, weird, I did some things including trying xhost +local: and restarting sway, and now it's shifted to this bug: https://github.com/ReimuNotMoe/ydotool/issues/205

psr-ai commented 3 months ago

I resolved this issue by installing xorg-host in arch linux and running the command xhost local:root.