From 67b2edb21f11d7b3bd2b5f8c88ceed4c5194c78a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Mon, 14 Sep 2020 09:01:48 +0200 Subject: [PATCH] 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. --- src/xdg-autostart-generator/xdg-autostart-service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xdg-autostart-generator/xdg-autostart-service.c b/src/xdg-autostart-generator/xdg-autostart-service.c index 9317e9d028..da5e79dcff 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"