firefox: remove native app dep on dirname

This commit is contained in:
2 * r + 2 * t 2025-07-13 14:31:47 +10:00
parent 043619c474
commit 8332540276

View file

@ -10,10 +10,11 @@ function message -a msg
end
set -q XDG_STATE_HOME && set -l state $XDG_STATE_HOME || set -l state $HOME/.local/state
set -l scheme_path $state/caelestia/scheme.json
set -l state_dir $state/caelestia
set -l scheme_path $state_dir/scheme.json
message (jq -c . $scheme_path)
inotifywait -q -e 'close_write,moved_to,create' -m (dirname $scheme_path) | while read dir events file
inotifywait -q -e 'close_write,moved_to,create' -m $state_dir | while read dir events file
test "$dir$file" = $scheme_path && message (jq -c . $scheme_path)
end