Skip to content

Commit

Permalink
fix: Fix missing icon on notifications (#253)
Browse files Browse the repository at this point in the history
Fix missing icon on "updates available" desktop notifications.
  • Loading branch information
Antiz96 authored Sep 26, 2024
1 parent 1349ad5 commit 04913bd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib/check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 04913bd

Please sign in to comment.