From dad1736fce6cacfd6a3161f5f7c31378f6586322 Mon Sep 17 00:00:00 2001 From: dylan araps Date: Wed, 16 Aug 2017 15:53:22 +1000 Subject: [PATCH] reload: Fix error with XQuartz on macOS. Closes #86 --- pywal/reload.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pywal/reload.py b/pywal/reload.py index 3f46004..b16aec1 100644 --- a/pywal/reload.py +++ b/pywal/reload.py @@ -7,7 +7,7 @@ import shutil import subprocess import sys -from .settings import CACHE_DIR, HOME, MODULE_DIR +from .settings import CACHE_DIR, HOME, MODULE_DIR, OS from . import util @@ -15,7 +15,7 @@ def xrdb(xrdb_file=None): """Merge the colors into the X db so new terminals use them.""" xrdb_file = xrdb_file or os.path.join(CACHE_DIR, "colors.Xresources") - if shutil.which("xrdb"): + if shutil.which("xrdb") or OS != "Darwin": subprocess.Popen(["xrdb", "-merge", xrdb_file], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL).wait()