ydotool icon indicating copy to clipboard operation
ydotool copied to clipboard

Cannot connect to daemon

Open DavidPerezIngeniero opened this issue 1 year ago • 2 comments

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?

DavidPerezIngeniero avatar Sep 17 '24 08:09 DavidPerezIngeniero

Here's a solution that worked for me:

  • copy ydotool.service to user services. In my case it was sudo 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

muri-a avatar Oct 28 '24 19:10 muri-a

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

Paiusco avatar Nov 02 '24 14:11 Paiusco