You are not logged in.
I am using ydotool - https://archlinux.org/packages/communit … 4/ydotool/
I can start it by
~ $ sudo ydotoold
But I can't start it through ydotool.service by
~$ systemctl --user enable ydotool.service
I get the following error message:
~ $ systemctl --user status ydotool.service
× ydotool.service - Starts ydotoold service
Loaded: loaded (/usr/lib/systemd/user/ydotool.service; enabled; preset: enabled)
Active: failed (Result: core-dump) since Mon 2023-02-20 14:15:40 +0630; 43s ago
Duration: 106ms
Process: 678 ExecStart=/usr/bin/ydotoold (code=dumped, signal=ABRT)
Main PID: 678 (code=dumped, signal=ABRT)
CPU: 4ms
Feb 20 14:15:40 hpmdmgma systemd[579]: ydotool.service: Failed with result 'core-dump'.
Feb 20 14:15:40 hpmdmgma systemd[579]: ydotool.service: Scheduled restart job, restart counter is at 5.
Feb 20 14:15:40 hpmdmgma systemd[579]: Stopped Starts ydotoold service.
Feb 20 14:15:40 hpmdmgma systemd[579]: ydotool.service: Start request repeated too quickly.
Feb 20 14:15:40 hpmdmgma systemd[579]: ydotool.service: Failed with result 'core-dump'.
Feb 20 14:15:40 hpmdmgma systemd[579]: Failed to start Starts ydotoold service.
should I do the following and will it work.
~ $ sudo systemctl --user enable ydotool.service
Last edited by duyinthee (2023-02-20 11:06:50)
Offline
You should probably not run this as root at all, https://github.com/ReimuNotMoe/ydotool/issues/154
Can you just run "ydotoold"?
should I do the following and will it work.
sudo systemctl --user enable ydotool.service
No. If anything and iff ydotoold requires root permissions, you'd have to use it as a system service.
"sudo systemctl --user" is completely bonkers. Always.
Offline
You should probably not run this as root at all, https://github.com/ReimuNotMoe/ydotool/issues/154
Can you just run "ydotoold"?should I do the following and will it work.
sudo systemctl --user enable ydotool.service
No. If anything and iff ydotoold requires root permissions, you'd have to use it as a system service.
"sudo systemctl --user" is completely bonkers. Always.
Thanks for reply, suggestion and the link.
Yes, I now can start ydotool.service user unit and it can start /usr/bin/ydotoold after I added user to input group.
should I suggest anyone to update this page https://wiki.archlinux.org/title/wayland#Automation to include about adding user to input group?
Offline
You'd rather have to raise this upstream, the manpages (still) say that it needs to run as root (in which case you'd run ydotoold as system service)
Offline