zocker-160 / thinkfan-ui

A small gui app for Linux to control the fan speed and monitor temps on a ThinkPad
GNU General Public License v3.0
88 stars 8 forks source link

Add fallback behavior for `os.getlogin()` raising `No such device or address` #10

Closed devsnd closed 1 year ago

devsnd commented 1 year ago

Add fallback behavior for os.getlogin() raising No such device or address

Apparently the behavior is depending on the environment, see here: https://bugs.python.org/issue40821

Instead I made the fan world-writable, which might not be the best security wise, but it probably good enough. Now it works for me™

zocker-160 commented 1 year ago

Thank you for this LGTM, was not aware of this issue.