dunst/contrib/dunst.systemd.service.in
Hugo Osvaldo Barrera 52b08e4f19 Don't hardcode a DISPLAY variable
Hardcoding a DISPLAY variable is a bad idea because it means that dunst
will only run on X11, and only for that specific configuration.

FWIW, this actually applies to any desktop app run via systemd:

1. `DISPLAY` should be set by `systemctl --user set-environment` elsewhere.
2. `DISPLAY=:0` is not universally valid.
3. This breaks dunst if attempting to run wayland, and requires manually
  starting it (eg: not via systemd), or editing the file.
2017-05-10 12:50:11 -03:00

13 lines
198 B
SYSTEMD

[Unit]
Description=Dunst notification daemon
Documentation=man:dunst(1)
[Service]
Type=dbus
BusName=org.freedesktop.Notifications
ExecStart=##PREFIX##/bin/dunst
[Install]
WantedBy=default.target