Fix install instructions
ydotool is wrongly installed using apt on debian, the daemon is missing and lots of stuff is broken. (probably due to outdated package)
I had hard times making it work but i finally did. I share here a simple script you can use
apt install -y scdoc
git clone https://github.com/ReimuNotMoe/ydotool
mkdir build
cd build
cmake -DSYSTEMD_SYSTEM_SERVICE=ON -DSYSTEMD_USER_SERVICE=OFF ..
make -j `nproc`
sudo ln -s $(pwd)/ydotool /usr/local/bin/ydotool
sudo ln -s $(pwd)/ydotoold /usr/local/bin/ydotoold
systemctl enable ./ydotoold.service
systemctl start ydotoold
Adapt it as you wish in your install instructions. cmake options are really important, otherwise daemon won't work properly (lack of access)
I'll put that in the README under Debian-based, Thanks!
You're welcome.
PS : i missed "sudo" for apt and missed "cd ydotool" after git clone
#I think ydotool can run as a user service. But you may have to double check and see if configuration is in $HOME/.config/systemd/user/ydotool.service and looks something like this.
[Unit]
Description=Run ydotool as user
Documentation=https://github.com/ReimuNotMoe/ydotool
[Service]
Type=simple
Restart=always
ExecStart=/usr/bin/ydotoold
ExecReload=/usr/bin/kill -HUP $MAINPID
KillMode=process
TimeoutSec=180
[Install]
WantedBy=default.target
And run
systemctl --user daemon-reload
systemctl --user start ydotool
systemctl --user enable ydotool
#Testing
systemctl --user status ydotool
ydotool with --user lacks some permissions i tested it