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.
13 lines
198 B
SYSTEMD
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
|
|
|