https://bugs.kde.org/show_bug.cgi?id=500737

fanzhuyi...@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |UPSTREAM
             Status|REPORTED                    |RESOLVED
                 CC|                            |fanzhuyi...@gmail.com

--- Comment #1 from fanzhuyi...@gmail.com ---
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

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to