ydotool
ydotool copied to clipboard
Cannot connect to daemon
I'm working with OpenSuse tumbleweed + Wayland + Plasma 6.
I'\ve installed in this way:
zypper in ydotool
and run this as a root:
nohup ydotool &
Now as my user I run:
❯ export YDOTOOL_SOCKET=/tmp/.ydotool_socket
❯ ydotool type hola
failed to connect socket `/run/user/0/.ydotool_socke': Permission denied
Please check if the current user has sufficient permissions to access the socket file.
How can I know which version I have installed?
Here's a solution that worked for me:
- copy
ydotool.serviceto user services. In my case it wassudo cp /usr/lib/systemd/system/ydotool.service /etc/systemd/user/ - start and enable service for a user
systemctl --user start ydotool
systemctl --user enable ydotool
does ydotool --version gives you something? If not, ydotoold --version gives you something? It seems you're using 1.0.4 (https://build.opensuse.org/package/show/openSUSE%3AFactory/ydotool)
But as the error message shows, ydotoold is creating the /run/user/0/.ydotool_socket and you're exporting /tmp/.ydotool_socket, they should match