diff options
| author | aschey <aschey13@gmail.com> | 2019-12-01 14:28:23 -0600 |
|---|---|---|
| committer | aschey <aschey13@gmail.com> | 2019-12-01 14:28:23 -0600 |
| commit | 85526b657107c8fa08861a6c6ef3790c5bc14fac (patch) | |
| tree | e1881785495c3e6fc5b5fa1c7b23b26737072090 /pywal/util.py | |
| parent | 788533e5c20132c727e2f287dce6ada64ebd5872 (diff) | |
| parent | c18f4014f969504deaeb692aa88660ee4cb10f3f (diff) | |
Merge branch 'master' into theme_save
Diffstat (limited to 'pywal/util.py')
| -rw-r--r-- | pywal/util.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pywal/util.py b/pywal/util.py index a158da9..e4b146a 100644 --- a/pywal/util.py +++ b/pywal/util.py @@ -8,6 +8,7 @@ import os import shutil import subprocess import sys +import platform class Color: @@ -183,7 +184,11 @@ def get_pid(name): return False try: - subprocess.check_output(["pidof", "-s", name]) + if platform.system() != 'Darwin': + subprocess.check_output(["pidof", "-s", name]) + else: + subprocess.check_output(["pidof", name]) + except subprocess.CalledProcessError: return False |
