8 Commits

Author SHA1 Message Date
Hugo Osvaldo Barrera
7c967879e2 Make dunst.service part of graphical-session
Make dunst part of graphical-session.target, so that it exits
immediately when the session exits.
2017-05-19 13:32:10 -03:00
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
Steven Allen
46e0a0e668 Add dunst documentation to the systemd unit. 2017-02-18 14:24:02 -08:00
Steven Allen
3775b44339 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.
2017-02-18 14:20:40 -08:00
Steven Allen
6f45c6926d Change the systemd service to a dbus unit 2017-02-18 14:17:38 -08:00
Eizen
f32659adb7 Add systemd service unit to contrib
Apply sed to reflect prefix but don't install it and clean service file in makefile. Add service file to gitignore
2016-12-21 01:57:16 -03:00
Sascha Kruse
adfe14c782 remove unnecessary redirect from dunst_espeak.sh 2012-12-21 14:03:45 +01:00
Sascha Kruse
4820f0da13 example script 2012-12-21 12:36:45 +01:00