From 3413c6517e677d5316dad47e52590e6cf5700079 Mon Sep 17 00:00:00 2001 From: Sho Date: Sun, 2 Aug 2026 00:20:07 +0900 Subject: [PATCH] fix: expand lutgen binary lookup paths in recolor_watcher.py to ensure wallpaper recolor logic transfers seamlessly --- quickshell/services/python/recolor_watcher.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/quickshell/services/python/recolor_watcher.py b/quickshell/services/python/recolor_watcher.py index 92d45e0..6ef2bdb 100644 --- a/quickshell/services/python/recolor_watcher.py +++ b/quickshell/services/python/recolor_watcher.py @@ -65,9 +65,17 @@ PALETTES = { } def find_lutgen(): - cargo_path = os.path.expanduser('~/.cargo/bin/lutgen') - if os.path.exists(cargo_path): - return cargo_path + for p in [ + os.path.expanduser('~/.cargo/bin/lutgen'), + os.path.expanduser('~/.cargo/bin/lutgen-cli'), + os.path.expanduser('~/.local/bin/lutgen'), + os.path.expanduser('~/.local/bin/lutgen-cli'), + '/usr/bin/lutgen', + '/usr/local/bin/lutgen', + '/usr/bin/lutgen-cli' + ]: + if os.path.exists(p): + return p return shutil.which('lutgen') or shutil.which('lutgen-cli') def recolor_and_replace(img_path, palette_hex_list, out_path):