From 13148e7f3f80d5def8ab2f39a782b469f74190e1 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 12 May 2026 22:26:07 +0000 Subject: [PATCH] fix(eww): use absolute path for stoa-capture so eww's /bin/sh finds it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The previous PR replaced the hardcoded /home/zeno/.local/bin/stoa-capture with the unqualified "stoa-capture", relying on PATH. That works from the user's interactive zsh (which has ~/.local/bin in PATH via .zshrc) but eww spawns commands via /bin/sh -c, and that shell inherits only the environment Hyprland was started with — not user shell rc files — so ~/.local/bin isn't on PATH. Result: clicking the capture button silently does nothing, with no log entry produced because the script itself never executes. Manual invocation from the terminal worked (zsh has the right PATH), which is what made the bug hard to pin down. Use \"~/.local/bin/stoa-capture\" in the onclick. sh expands a leading tilde during word expansion even from inside a -c string, so this resolves to the linked install path under any user's home. --- config/eww/eww.yuck | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/eww/eww.yuck b/config/eww/eww.yuck index e45e2e3..f2f0aec 100644 --- a/config/eww/eww.yuck +++ b/config/eww/eww.yuck @@ -136,7 +136,7 @@ ;; Capture button (button :class {capture-type == "screenshot" ? "cap-shutter-btn" : "cap-shutter-btn recording"} - :onclick "stoa-capture ${capture-mode} ${capture-type} ${capture-delay}" + :onclick "~/.local/bin/stoa-capture ${capture-mode} ${capture-type} ${capture-delay}" (label :class "cap-shutter-icon" :text {capture-type == "screenshot" ? "●" : "●"}))