diff options
Diffstat (limited to 'README')
-rw-r--r-- | README | 20 |
1 files changed, 16 insertions, 4 deletions
@@ -27,19 +27,32 @@ https://sylvaindurand.org/update-notifications-with-libnotify/ To test the implementation use following: +Arguments: + application name = identifier + id - if 0 or not existing will create new notification, otherwise + icon - local path if provided - the text is not displayed + title + desctiotion + actions + hints + expire time (milisec) - if -1 server default (5sec), if 0 - no expiration + gdbus call \ --session \ --dest org.freedesktop.Notifications \ --object-path /org/freedesktop/Notifications \ --method org.freedesktop.Notifications.Notify \ "identifier" \ - "1" \ + "0" \ "" \ "Notification title" \ "Notification description" \ "[]" \ "{}" \ "2000" + +In d-feet + "identifier", 0, "", "Notification title", "Notification description", [], {}, 30000 The second identifier (here 1) concerns the id of the notification we wish to replace, we will come back to this shortly. @@ -48,9 +61,8 @@ The next identifier allows you to define an icon. and finally the last argument 2000 presents the time during which the notification must remain visible (in milliseconds). -Once this command is executed, the system returns a response that looks like : - -(uint32 13,) +Once this command is executed, the system returns a response: + (uint32 13,) This number, here 13, is the id of the notification that we will be able to replace. |