diff options
author | Benjamin Berg <bberg@redhat.com> | 2022-01-10 12:35:46 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-01-12 16:11:09 +0100 |
commit | 6d0aef1dd15088e7379681b3bd93c3cb450f3c55 (patch) | |
tree | 1ea135678d75fa48a7d6789c7fa7dc6c04a7528a /src/xdg-autostart-generator/xdg-autostart-service.c | |
parent | Merge pull request #22092 from keszybz/docs-links (diff) | |
download | systemd-6d0aef1dd15088e7379681b3bd93c3cb450f3c55.tar.xz systemd-6d0aef1dd15088e7379681b3bd93c3cb450f3c55.zip |
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.
Diffstat (limited to 'src/xdg-autostart-generator/xdg-autostart-service.c')
-rw-r--r-- | src/xdg-autostart-generator/xdg-autostart-service.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xdg-autostart-generator/xdg-autostart-service.c b/src/xdg-autostart-generator/xdg-autostart-service.c index 32a4958aedc..d450341b9f1 100644 --- a/src/xdg-autostart-generator/xdg-autostart-service.c +++ b/src/xdg-autostart-generator/xdg-autostart-service.c @@ -487,7 +487,7 @@ static int xdg_autostart_generate_desktop_condition( "%s: ExecCondition executable %s not found, unit will not be started automatically: %m", service->path, test_binary); fprintf(f, "# ExecCondition using %s skipped due to missing binary.\n", test_binary); - return r; + return 0; } e_autostart_condition = cescape(condition); |