diff options
Diffstat (limited to 'mate-settings-daemon/main.c')
-rw-r--r-- | mate-settings-daemon/main.c | 13 |
1 files changed, 13 insertions, 0 deletions
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); |