Open moeenio opened 2 years ago
Actually, the install script mentions this (it's indeed not recommended to run tilp as root), specifically to take a look at https://github.com/debrouxl/tilibs/blob/master/libticables/trunk/CONFIG for details
The upstream build+install script https://github.com/debrouxl/tilp_and_gfm/raw/master/tilp/trunk/build/scripts/install_tilp.sh does not attempt to create an udev rules file. A long time ago, udev rules changed in backwards-incompatible ways quite often (there are traces of that in this CONFIG file), but udev has long surpassed that stage, fortunately.
Technically, making install_tilp.sh generate the udev rules file is trivial, for instance cat
a here-document in verbatim mode to the udev rules file.
I'm very new to this program, so sorry if this has been discussed before.
I found TiLP thanks to someone linking to this page, where the review from 2005 says that the program must be run as root, and that "there is nothing the author can do about it".
When first launching it, it would not find my calculator. From what I read on that link I assumed it was because it didn't have permission to access it. Instead of running it as root as suggested, I created a udev rule for my calculator :
Now it seems to work fine when running it as a regular user. So, I'd like to know if it could be relevant for this program to include udev rules in order to facilitate usage, and if there's a particular reason why it currently doesn't.
Thanks in advance for any reply.