GabMus / razerCommander

GTK contol center for managing razer peripherals on Linux
GNU General Public License v3.0
164 stars 25 forks source link

Refactor group check #53

Closed Agrendalath closed 6 years ago

Agrendalath commented 6 years ago

On Arch Linux I do not have USERNAME environment variable - instead I have USER. Function getuser() from module getpass checks LOGNAME, USER, LNAME and USERNAME, so basically it will make user check system-agnostic. Module grp will provide easier group existance and membership check.

GabMus commented 6 years ago

Looks good, thanks