summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraristocratos <gnmjpl@gmail.com>2021-04-25 13:36:33 +0200
committeraristocratos <gnmjpl@gmail.com>2021-04-25 13:36:33 +0200
commitf5df9aa0cdf35cc82a0beedf2874eabb9026931a (patch)
tree05cd3bd6eda46a4b36a142cef90aa509b497ac4c
parent878abb5b064aa86b75a796438e9c3ae463643687 (diff)
Fixed: Check for config in /usr/local/etc instead of /etc on BSD
-rwxr-xr-xbpytop.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bpytop.py b/bpytop.py
index e0e97fd..a9a89fa 100755
--- a/bpytop.py
+++ b/bpytop.py
@@ -520,7 +520,9 @@ class Config:
conf_file: str = ""
if os.path.isfile(self.config_file):
conf_file = self.config_file
- elif os.path.isfile("/etc/bpytop.conf"):
+ elif SYSTEM == "BSD" and os.path.isfile("/usr/local/etc/bpytop.conf"):
+ conf_file = "/usr/local/etc/bpytop.conf"
+ elif SYSTEM != "BSD" and os.path.isfile("/etc/bpytop.conf"):
conf_file = "/etc/bpytop.conf"
else:
return new_config