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

Handle installation of udev rules via CLI on Linux #695

Open
bessman opened this issue Nov 13, 2021 · 1 comment
Open

Handle installation of udev rules via CLI on Linux #695

bessman opened this issue Nov 13, 2021 · 1 comment
Assignees

Comments

@bessman
Copy link
Contributor

bessman commented Nov 13, 2021

  • I'm submitting a ...

    • [ x ] feature request
  • What is the current status?

On Linux, a udev rule must be installed before a user can access the PSLab device (unless the user is a member of a certain group, usually called 'dialout'). pslab-python offers a convenient way to install the udev rule via the command pslab install. pslab-desktop should offer the same feature, in case we decide to bundle pslab-python with pslab-desktop in the future (in which case pslab-python will not be accessible on the command line).

Since this feature requires root privileges, it makes sense to handle it on the command line in order to not have to handle privilege escalation within the app itself.

  • Please tell us about your environment:

This is only relevant on Linux.

@bessman bessman self-assigned this Nov 13, 2021
@orangecms
Copy link
Collaborator

This is the responsibility of a package manager, so that it tracks what in the system belongs to what software, so that it can be installed and uninstalled cleanly. See e.g. https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=python-pslab#n26

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

2 participants