From 6f45c6926d7a5a522993203575756034a312287b Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Sat, 18 Feb 2017 14:17:38 -0800 Subject: [PATCH 1/3] Change the systemd service to a dbus unit --- contrib/dunst.systemd.service.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/dunst.systemd.service.in b/contrib/dunst.systemd.service.in index 9ece8da..d4c139d 100644 --- a/contrib/dunst.systemd.service.in +++ b/contrib/dunst.systemd.service.in @@ -2,7 +2,8 @@ Description=Dunst notification daemon [Service] -Type=simple +Type=dbus +BusName=org.freedesktop.Notifications ExecStart=##PREFIX##/bin/dunst Environment=DISPLAY=:0 From 3775b44339b0482830ec60ce83389c9ac14554f7 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Sat, 18 Feb 2017 14:20:40 -0800 Subject: [PATCH 2/3] Change the systemd unit's WantedBy to default.target multi-user.target isn't a valid user target and it doesn't make sense to run dunst as a system service. Eventually, this unit should probably be converted to use graphical-session.target but it's a bit unclear how that's supposed to work right now. --- contrib/dunst.systemd.service.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/dunst.systemd.service.in b/contrib/dunst.systemd.service.in index d4c139d..5224780 100644 --- a/contrib/dunst.systemd.service.in +++ b/contrib/dunst.systemd.service.in @@ -8,5 +8,5 @@ ExecStart=##PREFIX##/bin/dunst Environment=DISPLAY=:0 [Install] -WantedBy=multi-user.target +WantedBy=default.target From 46e0a0e668982f63c76d6424a9a9c4451981a85d Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Sat, 18 Feb 2017 14:24:02 -0800 Subject: [PATCH 3/3] Add dunst documentation to the systemd unit. --- contrib/dunst.systemd.service.in | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/dunst.systemd.service.in b/contrib/dunst.systemd.service.in index 5224780..61ca237 100644 --- a/contrib/dunst.systemd.service.in +++ b/contrib/dunst.systemd.service.in @@ -1,5 +1,6 @@ [Unit] Description=Dunst notification daemon +Documentation=man:dunst(1) [Service] Type=dbus