You are not logged in.

#1 2023-02-20 08:03:49

duyinthee
Member
Registered: 2015-06-14
Posts: 235
Website

[SOLVED] ydotool.service can't start /usr/bin/ydotoold

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

#2 2023-02-20 08:23:18

seth
Member
Registered: 2012-09-03
Posts: 62,357

Re: [SOLVED] ydotool.service can't start /usr/bin/ydotoold

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

#3 2023-02-20 11:06:08

duyinthee
Member
Registered: 2015-06-14
Posts: 235
Website

Re: [SOLVED] ydotool.service can't start /usr/bin/ydotoold

seth wrote:

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

#4 2023-02-20 12:05:22

seth
Member
Registered: 2012-09-03
Posts: 62,357

Re: [SOLVED] ydotool.service can't start /usr/bin/ydotoold

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

Board footer

Powered by FluxBB