Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
reload: Fix error with XQuartz on macOS. Closes #86
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanaraps committed Aug 16, 2017
1 parent 270de57 commit dad1736
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pywal/reload.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
import subprocess
import sys

from .settings import CACHE_DIR, HOME, MODULE_DIR
from .settings import CACHE_DIR, HOME, MODULE_DIR, OS
from . import util


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()
Expand Down

0 comments on commit dad1736

Please sign in to comment.