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

Help on running ydotoold #198

Closed
exup opened this issue Apr 9, 2023 · 6 comments
Closed

Help on running ydotoold #198

exup opened this issue Apr 9, 2023 · 6 comments

Comments

@exup
Copy link

exup commented Apr 9, 2023

I am not understanding how to get ydotool running under wayland.
Im not clear on the step to run the ydotoold as a daemon service as I get the message

ydotool key F1
"failed to connect socket `/run/user/1000/.ydotool_socket': No such file or directory"

User is a member of the input group.

@Thomas-git
Copy link

Thomas-git commented Apr 10, 2023

You can reload systemd deamons with
systemctl daemon-reload
then enable ydotoold and start it
systemctl enable ydotoold' systemctl start ydotoold'

But... it stills failed with the same error message.
systemctl status ydotool shows

     Loaded: loaded (/usr/lib/systemd/system/ydotool.service; enabled; preset: disabled)
     Active: active (running) since Mon 2023-04-10 11:11:49 CEST; 15s ago
   Main PID: 22237 (ydotoold)
      Tasks: 1 (limit: 38164)
     Memory: 168.0K
        CPU: 4ms
     CGroup: /system.slice/ydotool.service
             └─22237 /usr/bin/ydotoold

avril 10 11:11:49 air-mite systemd[1]: Started ydotool.service - Starts ydotoold service.

So I don't know what else to do. ydotool seems to be looking for the socket in the wrong place.
By the way, I'm using Fedora 37.

@Thomas-git
Copy link

I found the socket created by ydotool deamon, you have to add the following env var:
export YDOTOOL_SOCKET=/tmp/.ydotool_socket

But, I got a permission denied. Socket is only writeable by root. What is the best way to allow user access securely ?

@adriandelgg
Copy link

adriandelgg commented Apr 27, 2023

You have to start it up first before you can do it.

To do this, open a terminal and type

$ sudo ydotoold

Then, open another terminal while you keep that first one open and type whatever commands you want.

Note: Make sure you run all the commands with root privileges sudo.

@exup
Copy link
Author

exup commented Apr 28, 2023

Hi, ok seems to work if you run it as sudo, I was under the impression it could be launched by a user. Although not ideal, I can use this as it is. Start the process, monitor it then shut it down.

@exup exup closed this as completed Apr 28, 2023
@ElectricRCAircraftGuy
Copy link

I wrote a full tutorial on my website here: https://gabrielstaples.com/ydotool-tutorial/#gsc.tab=0

See #207 (comment)

@shellheim
Copy link

Just in case someone comes across the same problem again, https://gist.github.com/shellheim/f00b5fe18f6217d990292a2f8f06b78a

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

5 participants