fix(screencapt): screenshot preview was not displayed in notification

This commit is contained in:
Yorick Barbanneau 2025-09-02 17:24:28 +02:00
parent d556ad85e4
commit 0116c861bd
Signed by: ephase
GPG key ID: 4447A19BBEDB8DBA

View file

@ -41,7 +41,7 @@ notify() {
message+="Available in the clipboard" message+="Available in the clipboard"
fi fi
command=(notify-send "${summary}" --app-name="$APP_NAME") command=(notify-send "${summary}" --app-name="$APP_NAME")
if [[ -n "$filename" && "$ACTION" == "screenshots" ]]; then if [[ -n "$filename" && "$ACTION" == "screenshot" ]]; then
command+=(--icon="${filename}") command+=(--icon="${filename}")
else else
command+=("--icon=${ICONS[$ACTION]}") command+=("--icon=${ICONS[$ACTION]}")