solokeys / solo1-cli

Solo 1 library and CLI in Python
https://pypi.org/project/solo-python
Apache License 2.0
185 stars 69 forks source link

Check if Solo is being run as root #13

Closed conorpp closed 5 years ago

conorpp commented 5 years ago

It might be a good idea to add a warning if Solo is being run as root, to catch more people running on linux and don't have udev rules set.

import os

if os.geteuid() == 0: print('Warning')
nickray commented 5 years ago

Released in v0.0.9