summaryrefslogtreecommitdiff
path: root/mate-settings-daemon
diff options
context:
space:
mode:
Diffstat (limited to 'mate-settings-daemon')
-rw-r--r--mate-settings-daemon/Makefile.am4
-rw-r--r--mate-settings-daemon/main.c13
2 files changed, 16 insertions, 1 deletions
diff --git a/mate-settings-daemon/Makefile.am b/mate-settings-daemon/Makefile.am
index fcf4520..778cb92 100644
--- a/mate-settings-daemon/Makefile.am
+++ b/mate-settings-daemon/Makefile.am
@@ -8,6 +8,7 @@ INCLUDES = \
$(WARN_CFLAGS) \
$(DISABLE_DEPRECATED_CFLAGS) \
$(SETTINGS_DAEMON_CFLAGS) \
+ $(LIBNOTIFY_CFLAGS) \
$(NULL)
noinst_LTLIBRARIES = \
@@ -78,7 +79,8 @@ mate_settings_daemon_LDFLAGS = \
mate_settings_daemon_LDADD = \
libmsd-profile.la \
- $(SETTINGS_DAEMON_LIBS)
+ $(SETTINGS_DAEMON_LIBS) \
+ $(LIBNOTIFY_LIBS)
EXTRA_DIST = \
$(Dbusapi_DATA) \
diff --git a/mate-settings-daemon/main.c b/mate-settings-daemon/main.c
index aba4285..364ff75 100644
--- a/mate-settings-daemon/main.c
+++ b/mate-settings-daemon/main.c
@@ -35,6 +35,10 @@
#include <dbus/dbus-glib.h>
#include <dbus/dbus-glib-lowlevel.h>
+#ifdef HAVE_LIBNOTIFY
+#include <libnotify/notify.h>
+#endif /* HAVE_LIBNOTIFY */
+
#include "mate-settings-manager.h"
#include "mate-settings-profile.h"
@@ -483,6 +487,10 @@ main (int argc, char *argv[])
goto out;
}
+#ifdef HAVE_LIBNOTIFY
+ notify_init ("mate-settings-daemon");
+#endif /* HAVE_LIBNOTIFY */
+
mate_settings_profile_start ("mate_settings_manager_new");
manager = mate_settings_manager_new ();
mate_settings_profile_end ("mate_settings_manager_new");
@@ -521,6 +529,11 @@ main (int argc, char *argv[])
g_object_unref (manager);
}
+#ifdef HAVE_LIBNOTIFY
+ if (notify_is_initted ())
+ notify_uninit ();
+#endif /* HAVE_LIBNOTIFY */
+
g_debug ("SettingsDaemon finished");
mate_settings_profile_end (NULL);