diff --git a/configure.ac b/configure.ac index 32aae7d3..8e451c9b 100644 --- a/configure.ac +++ b/configure.ac @@ -284,6 +284,7 @@ AM_CONDITIONAL([ICON_UPDATE], [test -n "$UPDATE_ICON_CACHE"]) AC_CONFIG_FILES([ Makefile data/Makefile +data/mate-notification-daemon.desktop.in data/org.freedesktop.mate.Notifications.service data/org.mate.applets.MateNotificationApplet.desktop.in data/org.mate.NotificationDaemon.gschema.xml diff --git a/data/Makefile.am b/data/Makefile.am index a666d7a1..3358d92d 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -16,6 +16,17 @@ servicedir = $(DBUS_SERVICES_DIR) service_DATA = org.freedesktop.mate.Notifications.service org.mate.panel.applet.MateNotificationAppletFactory.service service_in_files = $(service_DATA:=.in) +autostartdir = $(sysconfdir)/xdg/autostart +autostart_in_files = mate-notification-daemon.desktop.in +autostart_DATA = $(autostart_in_files:.desktop.in=.desktop) + +$(autostart_DATA): $(autostart_in_files) +if USE_NLS + $(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@ +else + $(AM_V_GEN) sed '/^# Translators/d' < $< > $@ +endif + appletdir = $(datadir)/mate-panel/applets applet_DATA = org.mate.applets.MateNotificationApplet.mate-panel-applet applet_in_files = $(applet_DATA:.mate-panel-applet=.desktop.in) @@ -43,6 +54,7 @@ gsettingsschema_in_files = $(gsettings_SCHEMAS:=.in) @GSETTINGS_RULES@ EXTRA_DIST = \ + $(autostart_in_files) \ $(desktop_in_files) \ $(gsettingsschema_in_files) \ $(icon16_DATA) \ @@ -53,6 +65,7 @@ EXTRA_DIST = \ $(iconscalable_DATA) CLEANFILES = \ + $(autostart_DATA) \ $(applet_DATA) \ $(desktop_DATA) \ $(gsettings_SCHEMAS) diff --git a/data/mate-notification-daemon.desktop.in.in b/data/mate-notification-daemon.desktop.in.in new file mode 100644 index 00000000..15cf95f9 --- /dev/null +++ b/data/mate-notification-daemon.desktop.in.in @@ -0,0 +1,14 @@ +[Desktop Entry] +Name=MATE Notification Daemon +Comment=Display notifications +Exec=@LIBEXECDIR@/mate-notification-daemon +Terminal=false +Type=Application +OnlyShowIn=MATE; +NoDisplay=true +X-MATE-Autostart-Phase=Application +X-MATE-Autostart-Notify=true +X-MATE-Bugzilla-Bugzilla=MATE +X-MATE-Bugzilla-Product=mate-notification-daemon +X-MATE-Bugzilla-Component=general +X-MATE-Bugzilla-Version=@VERSION@