Cinnamon Do Not Disturb and Update Manager Notification Interoperability
0 reputation · 12 Aug 2025, 16:51 UTC
0 reputation · 12 Aug 2025, 16:51 UTC
Goal: Ensure that Linux Mint's Update Manager suppresses its update notifications when Cinnamon's Do Not Disturb mode is active, preventing interruptions during presentations or full‑screen work.
Constraint: The Update Manager preferences expose only automatic check frequency and update type filters; there is no visible option to query or honor the DND state, and it is unclear whether this behavior is a configurable oversight or a limitation of the underlying notification daemon.
Questions: Does Update Manager provide a hidden setting or DBus interface to respect Cinnamon's Do Not Disturb flag? Can a system‑wide notification rule be created to suppress Update Manager alerts based on the DND state? Does this behavior differ between Linux Mint 21.3 (Cinnamon 5.8) and Linux Mint 22.0 (Cinnamon 6.0)?
The Update Manager (mint‑update) has no built‑in option or hidden DBus property that checks Cinnamon’s DoNotDisturb flag before posting a notification. The behaviour is identical on Linux Mint 21.3 (Cinnamon 5.8) and 22.0 (Cinnamon 6.0): the updater runs as a separate process and emits notifications via the standard org.freedesktop.Notifications interface, which Cinnamon’s DND setting only suppresses for *normal* transient notifications.
Because the updater sometimes sends high‑priority, non‑transient notifications (e.g., “critical update available”), Cinnamon’s DND does not block them automatically. Therefore, a user‑level workaround is required if you want the updater to pause while DND is active.
dbus-monitor --session --type=signal "interface='org.freedesktop.Notifications'"org.freedesktop.Notifications signals occurs.These steps confirm that the updater does not query the DND state.
You can block or delay the updater’s notification signals while DND is on by monitoring the Cinnamon DND property and sending a org.freedesktop.Notifications.CloseNotification for any pending update alerts. Below is a minimal Bash script that demonstrates the concept. Use it at your own risk; it may cause you to miss critical updates if the script fails.
#!/usr/bin/env bash
# Monitor Cinnamon DND state and block mint‑UpdateManager notifications
while true; do
# Get current DND state (true/false)
dnd=$(gsettings get org.cinnamon.NotificationsSettings do-not-disturb)
if [ "$dnd" = "true" ]; then
# While DND is active, listen for update notifications
dbus-monitor --session "interface='org.freedesktop.Notifications'" | while read line; do
if echo "$line" | grep -q 'org.linuxmint.mint-UpdateManager'; then
# Extract the notification ID from the signal
id=$(echo "$line" | grep -oP 'id=\K[0-9]+')
# Close the notification immediately
dbus-send --session --type=method_call \
--dest=org.freedesktop.Notifications \
/org/freedesktop/Notifications \
org.freedesktop.Notifications.CloseNotification uint32:$id
fi
done
else
sleep 5
fi
done
Save the script, make it executable (chmod +x), and run it in the background. It watches the DND flag and, while DND is true, intercepts any mint‑UpdateManager notification and closes it immediately. When DND is cleared, the script stops monitoring.
org.cinnamon.NotificationsSettings and the updater’s notifications can be closed via DBus.org.freedesktop.Notifications interface. In that case, the script may need to monitor the new org.cinnamon.Notifications interface instead.If you are using an alternative notification daemon (e.g., dunst) or have custom notification rules in dconf, let me know. That information could change the approach to suppressing the updater’s alerts.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.