-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Bug: --install-service missing -c config argument causes service to fail with EX_CONFIG (78)
Describe the bug
--install-service generates a plist with a missing -c config argument in ProgramArguments, causing the service to fail with EX_CONFIG (78) even when a valid config exists at the default location ~/.config/skhd/skhdrc.
To Reproduce
- Install via homebrew:
brew install jackielii/tap/skhd-zig - Create config at
~/.config/skhd/skhdrc - Run
skhd --install-service && skhd --start-service - Service fails to start —
skhd --statusshowsCurrently running: No
Expected behavior
--install-service should detect the config file location and include -c <path> in the generated plist ProgramArguments, or the service should correctly fall back to default config locations without needing the flag.
Debug Information
launchctl print gui/$(id -u)/com.jackielii.skhd shows:
arguments = {
/opt/homebrew/Cellar/skhd-zig/0.0.17/bin/skhd
}
last exit code = 78: EX_CONFIG
- No
-cargument is present in the generated plist - Log file
/tmp/skhd_$USER.logis completely empty - Manually running
skhd -V -c ~/.config/skhd/skhdrcworks perfectly - Editing the plist to add
-cand the config path does not take effect even afterlaunchctl unload/load—bootout/bootstrapis required, which--stop-service/--start-servicedoes not use internally
Environment
| macOS version | 26.3 Tahoe |
| skhd.zig version | v0.0.17-0e4a522 (fast) |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working