contrib/systemd: add ConditionEnvironment

This makes it clear xdpw requires WAYLAND_DISPLAY to be set before
being started.

Inspired by the mako service [1].

[1]: https://github.com/emersion/mako/blob/master/contrib/systemd/mako.service
This commit is contained in:
Simon Ser 2021-05-03 13:49:49 +02:00 committed by danshick
parent 884a2e808e
commit efcbcb60aa
1 changed files with 1 additions and 0 deletions

View File

@ -2,6 +2,7 @@
Description=Portal service (wlroots implementation)
PartOf=graphical-session.target
After=graphical-session.target
ConditionEnvironment=WAYLAND_DISPLAY
[Service]
Type=dbus