Skip to content

Instantly share code, notes, and snippets.

@doitian
Created August 24, 2009 07:58
Show Gist options
  • Save doitian/173730 to your computer and use it in GitHub Desktop.
Save doitian/173730 to your computer and use it in GitHub Desktop.
(dbus-call-method
:session "org.freedesktop.Notifications"
"/org/freedesktop/Notifications"
"org.freedesktop.Notifications" "Notify"
"GNU Emacs" ;; Application name.
0 ;; No replacement of other notifications.
"" ;; No icon.
"Notification summary" ;; Summary.
(format ;; Body.
"This is a test notification, raised from %s" (emacs-version))
'(:array) ;; No actions (empty array of strings).
'(:array :signature "{sv}") ;; No hints
;; (empty array of dictionary entries).
':int32 -1) ;; Default timeout.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment