| Summary: | Notifications sent a 0 msec timeout no longer displayed indefinitely & may clip the next notification | ||
|---|---|---|---|
| Product: | [Plasma] plasmashell | Reporter: | Luke Horwell <code> |
| Component: | Notifications | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | RESOLVED UPSTREAM | ||
| Severity: | normal | CC: | fanzhuyifan, kde |
| Priority: | NOR | ||
| Version First Reported In: | 6.3.1 | ||
| Target Milestone: | 1.0 | ||
| Platform: | Other | ||
| OS: | Linux | ||
| See Also: | https://gitlab.gnome.org/GNOME/libnotify/-/issues/54 | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | Video demonstrating the clipped notification after a 0 msec notification | ||
|
Description
Luke Horwell
2025-02-25 16:54:20 UTC
I could reproduce this but the issue is that for some reason notify-send also sends CloseNotification on dbus.
The following python code works fine in creating permanent notifications:
import dbus
def send_notification(summary, body, timeout):
bus = dbus.SessionBus() # Connect to the session bus
notify_service = bus.get_object("org.freedesktop.Notifications", "/org/freedesktop/Notifications")
notify_interface = dbus.Interface(notify_service, "org.freedesktop.Notifications")
app_name = "MyApp"
replaces_id = 0 # 0 means no previous notification to replace
icon = "" # No icon
actions = [] # No actions
hints = {} # No hints
notify_interface.Notify(app_name, replaces_id, icon, summary, body, actions, hints, timeout)
print("Notification sent successfully.")
# Example usage
send_notification("Hello!", "This is a test notification", timeout=0)
Since this looks like an issue in notify-send, this would need to be reported to libnotify
Thank you for triaging! Can confirm under Plasma 6.2 that upgrading libnotify to 0.8.4-1 is the cause. Just a coincidence since Plasma updated around the same time! The clipping/cut off notifications may still be a bug on Plasma's side, were you able to reproduce that issue too? (In reply to Luke Horwell from comment #2) > The clipping/cut off notifications may still be a bug on Plasma's side, were > you able to reproduce that issue too? Unfortunately I have been unable to reproduce that on my end (arch linux, master build, wayland) -- might be an x11-only issue, or maybe some more conditions need to be met to trigger the bug. |