Extract lib/donbox.sh #16
Labels
No labels
approved
bug
changes-requested
ci
decision
declined
discuss
docs
feature
meta
now
packaging
refactor
release
repo/core
repo/krystal
repo/plugins
repo/themes
status/backlog
status/in-progress
status/next
status/review
ux
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
joshquinlan/donbox#16
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
die, warn, require_command, state/config/data paths, single_instance, inhibit, notify; replace the 28 private copies; static test against raw notify-send and command -v.
Done on branch
coreas d4da86d.lib/donbox.shprovides die, warn, require_command,donbox_config_dir, donbox_data_dir, donbox_state_dir,
donbox_runtime_dir (each taking an optional subdirectory and
creating what it names), single_instance (flock on a runtime
file), inhibit hold|drop|held (the systemd-inhibit wrapper the
old caffeine and lid each carried a copy of), notify,
run_detached and donbox_dispatch.
bin/donbox-notifyandbin/donbox-notify-soundare portedonto it as the first two consumers, and the router itself now
sources it rather than carrying its own die.
test/shell.d/bin-style-test.shfails on a raw notify-send, ahand-rolled
command -vor a private die in bin/, and each waswatched failing on a planted offender.
The helpers are named
donbox_*_dirrather than thedonbox_statein the older docs; CLAUDE.md, .claude/rules/bin.mdand the new-command skill were updated to match.
Integrated on master (
efeac8a): lib/donbox.sh with die, warn, require_command, XDG dir helpers, single_instance, inhibit hold|drop|held, notify, run_detached, donbox_dispatch; bin-style-test gates raw notify-send, command -v and private die; donbox pkg now sources it (5836e23).