Before I found this extension, I'd set up my own systemd service to periodically check for updates by calling the following script:
#!/usr/bin/env bash
# Setup environment so notify-send can talk to your desktop session
export DISPLAY=:0
export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/$(id -u)/bus"
# --- Get DNF updates count ---
dnf_count=$(
dnf upgrade -q --refresh --assumeno \
| awk '
/^Upgrading:/ {in_upgrading=1; next}
/^Transaction Summary:/ {in_upgrading=0}
in_upgrading && /^ [^ ]/ {c++}
END {print c+0}
'
)
# --- Get Flatpak updates count ---
# Refresh metadata quietly
flatpak update --appstream > /dev/null 2>&1
# Count actual planned updates (apps + runtimes + extensions)
flatpak_count=$(
flatpak update --appstream --assumeno \
| grep -E '^\s*[0-9]+\.\s+\[.\]' \
| wc -l
)
# --- Build the notification message ---
message=""
if (( dnf_count > 0 )); then
message+="• $dnf_count DNF updates available"$'\n'
fi
if (( flatpak_count > 0 )); then
message+="• $flatpak_count Flatpak updates available"$'\n'
fi
# --- Send notification if needed ---
if [[ -n "$message" ]]; then
notify-send "Software Updates Available" "$message"
fi
This still works great, but your extension is a little neater. I wonder if you could also incorporate the Flatpak updates into this extension?
I'd recommend a separate icon/list for these updates.
What do you think?
So far, I've been able to edit the commands to include flatpak, however it's skews the number of total updates slightly. But I have kept the install command to also include updates, just in case there are any.
Before I found this extension, I'd set up my own systemd service to periodically check for updates by calling the following script:
This still works great, but your extension is a little neater. I wonder if you could also incorporate the Flatpak updates into this extension?
I'd recommend a separate icon/list for these updates.
What do you think?
So far, I've been able to edit the commands to include flatpak, however it's skews the number of total updates slightly. But I have kept the install command to also include updates, just in case there are any.