Skip to content

Instantly share code, notes, and snippets.

@lduboeuf
Last active September 4, 2025 14:29
Show Gist options
  • Select an option

  • Save lduboeuf/6c4b1177d0984297ed6818c2521f78b8 to your computer and use it in GitHub Desktop.

Select an option

Save lduboeuf/6c4b1177d0984297ed6818c2521f78b8 to your computer and use it in GitHub Desktop.
Test UT push notif
gdbus call --session --dest com.ubuntu.Postal --object-path /com/ubuntu/Postal/dekko2_2edekkoproject --method com.ubuntu.Postal.Post dekko2.dekkoproject_dekko \
'"{\"message\": \"foobar\", \"notification\":{\"card\": {\"summary\": \"yes\", \"body\": \"hello\", \"popup\": true, \"persist\": true}}}"'
@lduboeuf
Copy link
Author

gdbus call --session --dest org.freedesktop.Notifications --object-path /org/freedesktop/Notifications --method org.freedesktop.Notifications.Notify "notify-send" 1 "file:///opt/click.ubuntu.com/dekko2.dekkoproject/current/dekko.png" "hi mom3" "blah blah blah" "[]" '{"x-lomiri-secondary-icon": <string "file:///opt/click.ubuntu.com/teleports.ubports/current/assets/icon.svg">}' 5000

@lduboeuf
Copy link
Author

notif with buttons:

gdbus call --session --dest org.freedesktop.Notifications --object-path /org/freedesktop/Notifications --method org.freedesktop.Notifications.Notify "notify-send" 0 "security-alert" "hi critical3" "blah blah blah" "['ok', 'OK', 'cancel', 'Annuler']" '{"x-lomiri-snap-decisions": <string "true">, "x-lomiri-snap-decisions-timeout": <2147483647>}' 0

@lduboeuf
Copy link
Author

lduboeuf commented Feb 6, 2024

with sound:

gdbus call --session --dest org.freedesktop.Notifications --object-path /org/freedesktop/Notifications --method org.freedesktop.Notifications.Notify "notify-send" 1 "file:///opt/click.ubuntu.com/dekko2.dekkoproject/current/dekko.png" "hi mom3" "blah blah blah" "[]" '{"x-lomiri-secondary-icon": <string "file:///opt/click.ubuntu.com/teleports.ubports/current/assets/icon.svg">, "sound-file": <string "file:///usr/share/sounds/ubports/notifications/Sintonia.ogg">}' 5000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment