summaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
authorEmanoil Kotsev <[email protected]>2024-07-03 17:28:32 +0000
committerEmanoil Kotsev <[email protected]>2024-11-09 18:49:26 +0000
commite9f061202525c70635f22a4e5ebaf7fe75e1d806 (patch)
treea8d826c1c9a0dc03ae2bf773ab44c38d146adbc2 /README
parent7ea09f3f10350e44b8b41566f50449219cf6a4bf (diff)
downloadkdbusnotification-e9f061202525c70635f22a4e5ebaf7fe75e1d806.tar.gz
kdbusnotification-e9f061202525c70635f22a4e5ebaf7fe75e1d806.zip
Implemented the required features to meet v1.2 of the specs
Signed-off-by: Emanoil Kotsev <[email protected]>
Diffstat (limited to 'README')
-rw-r--r--README20
1 files changed, 16 insertions, 4 deletions
diff --git a/README b/README
index 37b9058..e8e76f1 100644
--- a/README
+++ b/README
@@ -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.