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>
Thu, 13 Jan 2022 10:27:41 +0000 (11:27 +0100)
commit81903f092946df6559c9b68ac187eacb613b5901
tree02769ac50b0f115a5b4c094c66bc3deb0a61af97
parenta349c917567ddbf306c913a1c8d35070479374a6
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)
(cherry picked from commit 5d3466ec91b05853b815db509b901e6a6d5f4db4)
src/xdg-autostart-generator/xdg-autostart-service.c