** Description changed:
[Impact]
On Ubuntu 24.04 LTS with GNOME Shell 46.0, notifications sent in quick
succession (e.g. multiple notify-send calls in a for-loop) do not appear
correctly. Only the first popup is shown, the others remain queued and
do not get shown unless a new notification triggers the queue.
[Test Case]
- 1. Run:
- for i in {1..5}; do notify-send --hint=int:id:$RANDOM "Test $i" "Message
$i"; done
+ 1. Log-in to Ubuntu Desktop
- 2. Only the first notification appears.
+ 2. Run:
+ for i in {1..5}; do notify-send --hint=int:id:$RANDOM "Test $i" "Message
$i"; done
- 3. Now run:
- notify-send "trigger" "flush"
+ 3. Verify that all 5 notifications were shown, one after the other when
+ the timeout for the previous notification expires, in the correct order
+ 1 through 5.
- → and the remaining queued notifications appear.
+ 4. Now run:
+ notify-send "trigger" "flush"
- [Expected Behavior]
+ 5. Verify that only the "flush" notification was shown, and no other
+ ones.
- GNOME Shell should process all notifications in queue, with each being
- shown in order based on timeout.
+ [ Where problems could occur ]
- [Observed Behavior]
+ The patch modifies the logic to detect when a notification can be considered
expired and thus removed from the screen, by adding an additional constraint.
+ If the new logic were to be wrong, notifications may not disappear
automatically from the screen after a timeout.
- Only the first is shown. Queue blocks and is not flushed until a new
- notification appears.
+ [ Other info ]
- [Workaround]
-
- Using the "Notification Timeout" GNOME extension and setting a timeout
- value (e.g. 1s) restores queue processing.
+ A workaround was also found:
+ Using the "Notification Timeout" GNOME extension and setting a timeout value
(e.g. 1s) restores queue processing.
[System Info]
- Ubuntu 24.04 LTS
- GNOME Shell 46.0
- Mutter 46.0
- X11 session (but same on Wayland)
- xdg-desktop-portal 1.18.4
- xdg-desktop-portal-gnome 46.2
This issue appears on clean installations with no GNOME Shell extensions
enabled.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2116717
Title:
GNOME Shell does not show notifications sent in burst — only first is
shown, others stay queued
To manage notifications about this bug go to:
https://bugs.launchpad.net/gnome-shell/+bug/2116717/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs