Merge pull request #324 from hobarrera/dont-hardcode-DISPLAY
Tweak systemd.service
This commit is contained in:
commit
1d0bfb2278
1
Makefile
1
Makefile
@ -64,6 +64,7 @@ install-doc:
|
|||||||
install-service: service
|
install-service: service
|
||||||
mkdir -p ${DESTDIR}${PREFIX}/share/dbus-1/services/
|
mkdir -p ${DESTDIR}${PREFIX}/share/dbus-1/services/
|
||||||
install -m644 org.knopwob.dunst.service ${DESTDIR}${PREFIX}/share/dbus-1/services
|
install -m644 org.knopwob.dunst.service ${DESTDIR}${PREFIX}/share/dbus-1/services
|
||||||
|
install -Dm644 dunst.systemd.service ${DESTDIR}${PREFIX}/lib/systemd/user/dunst.service
|
||||||
|
|
||||||
install: install-dunst install-doc install-service
|
install: install-dunst install-doc install-service
|
||||||
|
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Dunst notification daemon
|
Description=Dunst notification daemon
|
||||||
Documentation=man:dunst(1)
|
Documentation=man:dunst(1)
|
||||||
|
PartOf=graphical-session.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=dbus
|
Type=dbus
|
||||||
BusName=org.freedesktop.Notifications
|
BusName=org.freedesktop.Notifications
|
||||||
ExecStart=##PREFIX##/bin/dunst
|
ExecStart=##PREFIX##/bin/dunst
|
||||||
Environment=DISPLAY=:0
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=default.target
|
WantedBy=default.target
|
||||||
|
Loading…
x
Reference in New Issue
Block a user