Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot connect to daemon #251

Open
DavidPerezIngeniero opened this issue Sep 17, 2024 · 2 comments
Open

Cannot connect to daemon #251

DavidPerezIngeniero opened this issue Sep 17, 2024 · 2 comments

Comments

@DavidPerezIngeniero
Copy link

DavidPerezIngeniero commented Sep 17, 2024

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?

@muri-a
Copy link

muri-a commented Oct 28, 2024

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

@Paiusco
Copy link
Contributor

Paiusco commented Nov 2, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants