mirror of
https://github.com/systemd/systemd.git
synced 2025-03-28 02:50:16 +03:00
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.
This commit is contained in:
parent
ffb8c82715
commit
6d0aef1dd1
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user