haimgel / display-switch

Turn a $30 USB switch into a full-featured multi-monitor KVM switch
https://haim.dev/posts/2020-07-28-dual-monitor-kvm/
MIT License
2.83k stars 110 forks source link

Update Linux doc to run with user permissions #57

Closed olivierlemoal closed 3 years ago

olivierlemoal commented 3 years ago

Using root permissions to run services is never a good practice. A good solution would be to have a global config (https://github.com/haimgel/display-switch/issues/28) implemented so we could use a systemd DynamicUser and the i2c group. In the meantime, I think the best option is to stick to user permissions in a group with access to the i2c devices.