diff options
author | David Edmundson <kde@davidedmundson.co.uk> | 2021-02-03 12:29:28 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2021-02-04 16:41:22 +0100 |
commit | 84c46fb03c9a8b4c5b2d24e84a77fcb171109fe4 (patch) | |
tree | 151d3234a37aa02fe1a8c07ff9b1cae720e12a39 /src/xdg-autostart-generator/xdg-autostart-service.c | |
parent | boot: Replace efivar_set() persistent argument with flags argument (diff) | |
download | systemd-84c46fb03c9a8b4c5b2d24e84a77fcb171109fe4.tar.xz systemd-84c46fb03c9a8b4c5b2d24e84a77fcb171109fe4.zip |
xdg-autostart: Generate autostart services with templated name
The "XDG standardization for applications" specification states that
services should be in the form:
app[-<launcher>]-<ApplicationID>[@<RANDOM>].service or
app[-<launcher>]-<ApplicationID>-<RANDOM>.scope
In this case "autostart" takes the place of [RANDOM] to provide a unique
identifier if the same app is launched elsewhere. As it is a service
that means it should be set as a template not using a hyphen delimiter.
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 671d16d2d9e..ed9301d809c 100644 --- a/src/xdg-autostart-generator/xdg-autostart-service.c +++ b/src/xdg-autostart-generator/xdg-autostart-service.c @@ -58,7 +58,7 @@ char *xdg_autostart_service_translate_name(const char *name) { if (!escaped) return NULL; - return strjoin("app-", escaped, "-autostart.service"); + return strjoin("app-", escaped, "@autostart.service"); } static int xdg_config_parse_bool( |