Nitrokey / pynitrokey

Python client for Nitrokey devices
Apache License 2.0
98 stars 27 forks source link

improve udev rules "handling" #366

Closed daringer closed 1 year ago

daringer commented 1 year ago

We should be better with recognizing not existing udev rules, I see the following options to be investigated:

we could easily have multiple udev-rules-files installed on a system without them interfering, right? Even if they handle the same devices? (e.g., one from nitrokey-app, one from pynitrokey)

szszszsz commented 1 year ago

Partly a duplicate of https://github.com/Nitrokey/pynitrokey/issues/197. The minimum is downloading the udev rules file to the CWD and list to user what needs to be executed. Automatically installing to the system directory is not seen welcomed AFAIK.

Udev rules contain instructions to stop processing once the rule match, so multiple of them should not conflict. The only downside is to extend the processing time for other devices, having lower priority than this particular file.


Docs: https://docs.nitrokey.com/nitrokey3/linux/firmware-update

daringer commented 1 year ago

This is a duplicate of: https://github.com/Nitrokey/pynitrokey/issues/386 which should be used to track this Same applies to #197