Fixed: Removed "/sys/class/power_supply" check for FreeBSD and OsX

pull/221/head
aristocratos 2020-12-21 21:19:03 +01:00
parent 7ad01875af
commit 8136645a6e
1 changed files with 1 additions and 1 deletions

View File

@ -533,7 +533,7 @@ except Exception as e:
errlog.exception(f'{e}')
raise SystemExit(1)
if not os.path.isdir("/sys/class/power_supply"):
if SYSTEM == "Linux" and not os.path.isdir("/sys/class/power_supply"):
CONFIG.show_battery = False
if psutil.version_info[0] < 5 or (psutil.version_info[0] == 5 and psutil.version_info[1] < 7):