Introduction to libnotify

The libnotify library is used to send desktop notifications to a notification daemon, as defined in the Desktop Notifications spec. These notifications can be used to inform the user about an event or display some form of information without getting in the user's way.

This package is known to build and work properly using an LFS-11.2 platform.

Package Information

libnotify Dependencies



Optional (Required if building GNOME)



GTK-Doc-1.33.2 and xmlto-0.0.28

Required (runtime)

notification-daemon-3.20.0 or xfce4-notifyd-0.6.3



GNOME Shell and KDE KWin provide their own notification daemons.

User Notes:

Installation of libnotify

Install libnotify by running the following commands:

mkdir build &&
cd    build &&

meson --prefix=/usr       \
      --buildtype=release \
      -Dgtk_doc=false     \
      -Dman=false .. &&

This package does not come with a test suite.

Now, as the root user:

ninja install &&
mv -v /usr/share/doc/libnotify{,-0.8.1}

Command Explanations

--buildtype=release: Specify a buildtype suitable for stable releases of the package, as the default may produce unoptimized binaries.

-Dgtk_doc=false: Remove this parameter if GTK-Doc is installed and you wish to rebuild and install the API documentation.


Installed Program: notify-send
Installed Library:
Installed Directories: /usr/include/libnotify and /usr/share/gtk-doc/html/libnotify

Short Descriptions


is a command used to send notifications

contains the libnotify API functions