From ed10295289e5a3ea1f60b8f01fbc030a1150d42c Mon Sep 17 00:00:00 2001 From: Sascha Kruse Date: Sat, 28 Jul 2012 17:55:21 +0200 Subject: [PATCH] dunst.service --- CHANGELOG | 1 + Makefile | 9 ++++++++- dunst.service.in | 3 +++ 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 dunst.service.in diff --git a/CHANGELOG b/CHANGELOG index e6d4d9c..8654d9d 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -10,6 +10,7 @@ v0.3.0: - keybinding to close all notifications - new way to specify keybindings - cleanup / bugfixes etc. + - added dunst.service v0.2.0: - introduction of dunstrc diff --git a/Makefile b/Makefile index 3d62693..a1f3c06 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ include config.mk SRC = draw.c dunst.c list.c dunst_dbus.c ini.c OBJ = ${SRC:.c=.o} -all: doc options dunst +all: doc options dunst service options: @echo dunst build options: @@ -29,11 +29,15 @@ clean: @rm -f ${OBJ} @rm -f dunst @rm -f dunst.1 + @rm -f dunst.service doc: dunst.1 dunst.1: README.pod pod2man $< > $@ +service: + @sed "s|##PREFIX##|$(PREFIX)|" dunst.service.in > dunst.service + install: all @echo installing executables to ${DESTDIR}${PREFIX}/bin @mkdir -p ${DESTDIR}${PREFIX}/bin @@ -45,11 +49,14 @@ install: all @chmod 644 ${DESTDIR}${MANPREFIX}/man1/dunst.1 @mkdir -p "${DESTDIR}${PREFIX}/share/dunst" @ cp -f dunstrc ${DESTDIR}${PREFIX}/share/dunst + @mkdir -p "${DESTDIR}${PREFIX}/share/dbus-1/services/" + @cp -vf dunst.service "${DESTDIR}${PREFIX}/share/dbus-1/services/dunst.service" uninstall: @echo removing executables from ${DESTDIR}${PREFIX}/bin @rm -f ${DESTDIR}${PREFIX}/bin/dunst @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1 @rm -f ${DESTDIR}${MANPREFIX}/man1/dunst + @rm -f ${DESTDIR}${PREFIX}/share/dbus-1/service/dunst.service .PHONY: all options clean dist install uninstall diff --git a/dunst.service.in b/dunst.service.in new file mode 100644 index 0000000..83c2775 --- /dev/null +++ b/dunst.service.in @@ -0,0 +1,3 @@ +[D-BUS Service] +Name=org.freedesktop.Notifications +Exec=##PREFIX##/bin/dunst