mirror of
https://github.com/wickedyoda/public-setupfiles.git
synced 2026-11-16 13:31:56 -06:00
fix: robust hs binary search in tile-windows.applescript (#92)
The original AppleScript hardcoded /opt/homebrew/bin/hs, but do shell script runs with a minimal PATH so the hs CLI may not be found. Now searches known locations: /opt/homebrew/bin/hs, /usr/local/bin/hs, /opt/local/bin/hs, and the Hammerspoon Caskroom path. Co-authored-by: Wicked Yoda <noreply@users.noreply.github.com>
This commit is contained in:
1 parent
af1d1634c2
commit
39c943f945
2 files changed
+36
-7
No files matched your search
@@ -19,6 +19,8 @@ brew install --cask hammerspoon
|
||||
```
|
||||
Open Hammerspoon and **grant Accessibility permission** in System Settings → Privacy & Security → Accessibility.
|
||||
|
||||
> **Note:** The clickable `.app` searches these known `hs` binary locations automatically: `/opt/homebrew/bin/hs`, `/usr/local/bin/hs`, `/opt/local/bin/hs`, and the Hammerspoon Caskroom path. This is necessary because AppleScript's `do shell script` runs with a minimal PATH that doesn't include your interactive shell's PATH.
|
||||
|
||||
### 2. Install the config
|
||||
```bash
|
||||
# Back up existing config if you have one
|
||||
|
||||
Reference in new issue
Block a user