ReimuNotMoe / ydotool

Generic command-line automation tool (no X!)
GNU Affero General Public License v3.0
1.36k stars 77 forks source link

Add man pages #233

Open jidanni opened 3 months ago

jidanni commented 3 months ago

Seen on Debian,

$ ydotool key abc
ydotool: notice: ydotoold backend unavailable (may have latency+delay issues)
terminate called after throwing an instance of 'std::runtime_error'
  what():  failed to open uinput device
Aborted (core dumped)
$ man ydotool
No manual entry for ydotool
Paiusco commented 2 months ago

Can you check if you do have a /dev/uinput on your system?

Not having the manual seems weird, maybe packaging issue or old version? Which version of ydotool you have, do you know? Also which version of debian?

I was going to ask to --version, but seems like ydotool doesn't have it, so seems like a doable improvement to add from now on

Paiusco commented 2 months ago

Btw, I just opened #238 to improve that, but you still can get the hash/version if you run that from the daemon.

So the question still stands to check which version you have and what debian are you in? Maybe was a packaging issue

jidanni commented 2 months ago

Comparing https://packages.debian.org/sid/arm64/xdotool/filelist https://packages.debian.org/sid/arm64/ydotool/filelist we see you might want to tell Debian https://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=ydotool;dist=unstable that they have not included your man pages.

Paiusco commented 2 months ago

@jidanni Debian (even unstable) is still shipping ydotool v0.1.8 (Released 5 years ago).

The man pages were added on 0.1.9 as far as I can see. I think Debian should update the package, maybe not on the stable one, but for new versions.

I'd recommend you to try and build ydotool locally from main yourself and see if that fixes the issue you're having

jidanni commented 2 months ago

OK, I filed https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1070356. to remind them to update it. Thanks.