From 8136645a6ecf679edc2a4a6e81726853885c5a38 Mon Sep 17 00:00:00 2001 From: aristocratos Date: Mon, 21 Dec 2020 21:19:03 +0100 Subject: [PATCH] Fixed: Removed "/sys/class/power_supply" check for FreeBSD and OsX --- bpytop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bpytop.py b/bpytop.py index a1c2b3a..9162569 100755 --- a/bpytop.py +++ b/bpytop.py @@ -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):