voice_typing icon indicating copy to clipboard operation
voice_typing copied to clipboard

Fix install instructions

Open snwfdhmp opened this issue 1 year ago • 4 comments

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)

snwfdhmp avatar Nov 28 '24 15:11 snwfdhmp

I'll put that in the README under Debian-based, Thanks!

themanyone avatar Nov 29 '24 20:11 themanyone

You're welcome.

PS : i missed "sudo" for apt and missed "cd ydotool" after git clone

snwfdhmp avatar Dec 01 '24 01:12 snwfdhmp

#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

themanyone avatar Dec 01 '24 15:12 themanyone

ydotool with --user lacks some permissions i tested it

snwfdhmp avatar Dec 02 '24 12:12 snwfdhmp