diff options
| author | Will Eccles <ghostyx123@gmail.com> | 2019-04-04 16:32:50 -0400 |
|---|---|---|
| committer | Will Eccles <ghostyx123@gmail.com> | 2019-04-04 16:32:50 -0400 |
| commit | efa7c86ec5f9b0f5df0d361fe1f8b7a9076b65de (patch) | |
| tree | 875db0b2abb17478d7acdfd846539060112346af /pywal | |
| parent | c823e3c9dbd0100ca09caf824e77d296685a1c1e (diff) | |
fixed pidof on mac os
Diffstat (limited to 'pywal')
| -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 |
