bluetooth_notification_client_LDADD = $(TIZEN_LIBS)
SCRIPT_IN_FILES = \
- notifications.service.in
+ notifications.service.in \
+ notifications_display.service.in
install-data-hook:
$(mkinstalldirs) $(DESTDIR)/usr/lib/systemd/system/
install -m 0644 notifications.service $(DESTDIR)/usr/lib/systemd/system/notifications.service
+ install -m 0644 notifications_display.service $(DESTDIR)/usr/lib/systemd/system/notifications_display.service
AC_SUBST(TIZEN_CFLAGS)
AC_SUBST(TIZEN_LIBS)
-AC_CONFIG_FILES([Makefile notifications.service])
+AC_CONFIG_FILES([Makefile notifications.service notifications_display.service])
AC_PROG_RANLIB([ranlib])
AC_OUTPUT
notification_get_list (NOTIFICATION_TYPE_NOTI, -1, ¬ification_list);
if (notification_list) {
get_list = notification_list_get_head (notification_list);
- while (get_list) {
+ if (get_list) {
noti = notification_list_get_data (get_list);
notification_get_pkgname (noti, &pkgname);
if (pkgname == NULL)
# endif
notification_delete (noti);
- get_list = notification_list_get_head (notification_list);
}
}
}
--- /dev/null
+[Unit]
+Description=Notifications Popup daemon
+
+[Service]
+Environment=XDG_RUNTIME_DIR=/run/display
+ExecStart=/usr/bin/notification-display-service
+
+[Install]
+WantedBy=graphical.target
%install
%make_install
%install_service graphical.target.wants notifications.service
+%install_service graphical.target.wants notifications_display.service
%post
%systemd_post notifications.service
%{_bindir}/notification-service
%{_bindir}/notification-display-service
%{_unitdir}/notifications.service
+%{_unitdir}/notifications_display.service
%{_unitdir}/graphical.target.wants/notifications.service
+%{_unitdir}/graphical.target.wants/notifications_display.service
%files test
%defattr(-,root,root,-)