xdg-autostart-service: Ignore missing desktop-sepcific condition binary
authorBenjamin Berg <bberg@redhat.com>
Mon, 10 Jan 2022 11:35:46 +0000 (12:35 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 12 Jan 2022 21:26:22 +0000 (22:26 +0100)
commit5d3466ec91b05853b815db509b901e6a6d5f4db4
tree168e298fa7b41f8c3231ac1c54c96841f51e06f6
parentc2cb950d4b78db4aec32ccc3c39897184b82a9bd
xdg-autostart-service: Ignore missing desktop-sepcific condition binary

If a desktop specific ExecCondition= binary does not exist, this just
means that the desktop environment is not available. As such, it is not
an error condition that should prevent the service from being installed
in the .wants target.

Fix this by simply returning zero.

(cherry picked from commit 6d0aef1dd15088e7379681b3bd93c3cb450f3c55)
(cherry picked from commit 19fbd7764da2e23a89e27b4d95afd77b99f4be87)
src/xdg-autostart-generator/xdg-autostart-service.c