From 04913bd115d21d106524254fc33416c3b26d31f7 Mon Sep 17 00:00:00 2001 From: Robin Candau Date: Thu, 26 Sep 2024 23:25:15 +0200 Subject: [PATCH] fix: Fix missing icon on notifications (#253) Fix missing icon on "updates available" desktop notifications. --- src/lib/check.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/check.sh b/src/lib/check.sh index 9d9e97a..5800dea 100755 --- a/src/lib/check.sh +++ b/src/lib/check.sh @@ -31,17 +31,17 @@ if [ -n "${update_available}" ]; then if [ "${update_number}" -eq 1 ]; then if [ -z "${last_notif_id}" ]; then # shellcheck disable=SC2154 - notify-send -p -i "${name}" "${_name}" "$(eval_gettext "\${update_number} update available")" > "${tmpdir}/last_notif_id" + notify-send -p -i "${name}-${tray_icon_style}" "${_name}" "$(eval_gettext "\${update_number} update available")" > "${tmpdir}/last_notif_id" else # shellcheck disable=SC2154 - notify-send -p -r "${last_notif_id}" -i "${name}" "${_name}" "$(eval_gettext "\${update_number} update available")" > "${tmpdir}/last_notif_id" + notify-send -p -r "${last_notif_id}" -i "${name}-${tray_icon_style}" "${_name}" "$(eval_gettext "\${update_number} update available")" > "${tmpdir}/last_notif_id" fi else if [ -z "${last_notif_id}" ]; then - notify-send -p -i "${name}" "${_name}" "$(eval_gettext "\${update_number} updates available")" > "${tmpdir}/last_notif_id" + notify-send -p -i "${name}-${tray_icon_style}" "${_name}" "$(eval_gettext "\${update_number} updates available")" > "${tmpdir}/last_notif_id" else - notify-send -p -r "${last_notif_id}" -i "${name}" "${_name}" "$(eval_gettext "\${update_number} updates available")" > "${tmpdir}/last_notif_id" + notify-send -p -r "${last_notif_id}" -i "${name}-${tray_icon_style}" "${_name}" "$(eval_gettext "\${update_number} updates available")" > "${tmpdir}/last_notif_id" fi fi fi