diff options
| author | Igor Soarez <igor@soarez.org> | 2026-10-19 16:19:10 +0300 |
|---|---|---|
| committer | Igor Soarez <igor@soarez.org> | 2026-10-19 16:19:10 +0300 |
| commit | 3bace4ac392fb914263377369383f5ac23111c61 (patch) | |
| tree | 6dbd48104e158cb7af6aebe774440181eb44eb09 /packaging | |
| parent | ab33633ceb9e4bea3e292b2371241797d1587d02 (diff) | |
wait for tmux at startup, force utf-8 for tmux clients, add launchd packaging
running under launchd, the tmux client defaults to the c locale, which
makes tmux mangle tab-separated -f output into underscores, so every
pane parsed as one field and the watcher silently saw nothing; invoke
tmux with -u so format output is locale-independent. drop the startup
fail-fast: the watcher now waits for a tmux server and attaches when one
appears, which is the right shape for a login agent. ship the launchd
plist under packaging/launchd.
Diffstat (limited to 'packaging')
| -rw-r--r-- | packaging/launchd/dev.dingger.dingger.plist | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/packaging/launchd/dev.dingger.dingger.plist b/packaging/launchd/dev.dingger.dingger.plist new file mode 100644 index 0000000..212b903 --- /dev/null +++ b/packaging/launchd/dev.dingger.dingger.plist @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> +<plist version="1.0"> +<dict> + <key>EnvironmentVariables</key> + <dict> + <key>PATH</key> + <string>/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin</string> + <key>RUST_LOG</key> + <string>debug</string> + </dict> + <key>KeepAlive</key> + <true/> + <key>Label</key> + <string>dev.dingger.dingger</string> + <key>ProgramArguments</key> + <array> + <string>/Users/YOURUSER/.local/bin/dingger</string> + <string>watch</string> + </array> + <key>RunAtLoad</key> + <true/> + <key>StandardErrorPath</key> + <string>/Users/YOURUSER/Library/Logs/dingger.log</string> + <key>StandardOutPath</key> + <string>/Users/YOURUSER/Library/Logs/dingger.log</string> + <key>ThrottleInterval</key> + <integer>10</integer> +</dict> +</plist> |
