From efcbcb60aa3bc46b0e290d5f6627783fbb534dcd Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 3 May 2021 13:49:49 +0200 Subject: [PATCH] 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 --- contrib/systemd/xdg-desktop-portal-wlr.service.in | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/systemd/xdg-desktop-portal-wlr.service.in b/contrib/systemd/xdg-desktop-portal-wlr.service.in index ed9fddc..29a03f4 100644 --- a/contrib/systemd/xdg-desktop-portal-wlr.service.in +++ b/contrib/systemd/xdg-desktop-portal-wlr.service.in @@ -2,6 +2,7 @@ Description=Portal service (wlroots implementation) PartOf=graphical-session.target After=graphical-session.target +ConditionEnvironment=WAYLAND_DISPLAY [Service] Type=dbus