reload: Turns out that you can't give xrdb multiple files at once.

This commit is contained in:
Dylan Araps 2018-01-01 09:10:33 +11:00
parent f07c98b661
commit 19b5a4fa26

View File

@ -17,7 +17,8 @@ def xrdb(xrdb_files=None):
os.path.join(CACHE_DIR, "colors-rofi.Xresources")] os.path.join(CACHE_DIR, "colors-rofi.Xresources")]
if shutil.which("xrdb") and OS != "Darwin": if shutil.which("xrdb") and OS != "Darwin":
subprocess.Popen(["xrdb", "-merge", "-nocpp", *xrdb_files], for file in xrdb_files:
subprocess.Popen(["xrdb", "-merge", "-nocpp", file],
stdout=subprocess.DEVNULL, stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL).wait() stderr=subprocess.DEVNULL).wait()