Skip to content

A concise example of a dbus org.freedesktop.Notification backend in Vala

License

Notifications You must be signed in to change notification settings

kgilmer/vala-dbus-notification-backend-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

notification-backend

This is a sample a dbus-based freedesktop notification backend written in Vala.

Why?

There are some existing samples on the internet but they are old and I could not get them to work. I ended up copying a Python variant and was able to get the sample to print simple messages when notifications are generated.

How

Build and run the backend:

$ make
$ G_MESSAGES_DEBUG=all ./notification-backend

In another terminal, send a notification:

$ notify-send boo

Notice the backend print a message reporting it received a notification:

** (process:5737): DEBUG: 08:08:38.810: notification-backend.vala:9: Got notification

About

A concise example of a dbus org.freedesktop.Notification backend in Vala

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published