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.
This commit is contained in:
parent
8b74a756c2
commit
52b08e4f19
@ -6,7 +6,6 @@ Documentation=man:dunst(1)
|
||||
Type=dbus
|
||||
BusName=org.freedesktop.Notifications
|
||||
ExecStart=##PREFIX##/bin/dunst
|
||||
Environment=DISPLAY=:0
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
Loading…
x
Reference in New Issue
Block a user