Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide udev rules? #68

Open
moeenio opened this issue Oct 15, 2022 · 2 comments
Open

Provide udev rules? #68

moeenio opened this issue Oct 15, 2022 · 2 comments

Comments

@moeenio
Copy link

moeenio commented Oct 15, 2022

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 :

# /etc/udev/rules.d/40-ti-calc.rules
SUBSYSTEM=="usb", SUBSYSTEMS=="usb", ATTRS{idVendor}=="0451", ATTRS{idProduct}=="e008", MODE="0666"

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.

@adriweb
Copy link
Contributor

adriweb commented Oct 15, 2022 via email

@debrouxl debrouxl transferred this issue from debrouxl/tilp_and_gfm Oct 16, 2022
@debrouxl
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants