Create pictures dir if non existent (#5181)

* Create pictures dir if non existent

* Simplify

Don't need to guard against mkdir failing

---------

Co-authored-by: David Heinemeier Hansson <david@hey.com>
This commit is contained in:
Bruno Ribeiro
2026-04-02 12:32:12 +02:00
committed by GitHub
co-authored by David Heinemeier Hansson
parent 9896c1e988
commit 08b317901b
+1 -2
View File
@@ -8,8 +8,7 @@
OUTPUT_DIR="${OMARCHY_SCREENSHOT_DIR:-${XDG_PICTURES_DIR:-$HOME/Pictures}}"
if [[ ! -d $OUTPUT_DIR ]]; then
notify-send "Screenshot directory does not exist: $OUTPUT_DIR" -u critical -t 3000
exit 1
notify-send "Created screenshot directory: $OUTPUT_DIR" -u normal -t 2000
fi
pkill slurp && exit 0