]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
xdg-autostart-generator: use Type=exec
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 14 Sep 2020 07:01:48 +0000 (09:01 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 22 Oct 2020 09:05:17 +0000 (11:05 +0200)
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.

src/xdg-autostart-generator/xdg-autostart-service.c

index 9317e9d028937c4b09352d73ec998ee1a8af8f9d..da5e79dcff5d014a22219f66ccb833a22631caba 100644 (file)
@@ -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"