From: Zbigniew Jędrzejewski-Szmek Date: Mon, 14 Sep 2020 07:01:48 +0000 (+0200) Subject: xdg-autostart-generator: use Type=exec X-Git-Tag: v247-rc1~21^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=67b2edb21f11d7b3bd2b5f8c88ceed4c5194c78a;p=thirdparty%2Fsystemd.git xdg-autostart-generator: use Type=exec We check that the binary exists before writing the service file, but let's also not consider the service started until the fork has happened. This is still relatively new stuff, so we're can change the implementation details like this. --- diff --git a/src/xdg-autostart-generator/xdg-autostart-service.c b/src/xdg-autostart-generator/xdg-autostart-service.c index 9317e9d0289..da5e79dcff5 100644 --- a/src/xdg-autostart-generator/xdg-autostart-service.c +++ b/src/xdg-autostart-generator/xdg-autostart-service.c @@ -604,7 +604,7 @@ int xdg_autostart_service_generate_unit( fprintf(f, "\n[Service]\n" - "Type=simple\n" + "Type=exec\n" "ExecStart=:%s\n" "Restart=no\n" "TimeoutSec=5s\n"