summaryrefslogtreecommitdiff
path: root/src/xdg-autostart-generator
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2023-03-24 17:51:52 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2023-03-25 13:38:39 +0900
commitb5a70eeecdb593f8498c0bc163d5a12297cfb55d (patch)
treedddef740514ec48eacc0903c72e184bcea78c521 /src/xdg-autostart-generator
parent01c357b0accf43d52a18dff91c4b92c03118f93f (diff)
downloadsystemd-b5a70eeecdb593f8498c0bc163d5a12297cfb55d.tar.gz
xdg-autostart-generator: do not warn about unknown fields
My user manager says: systemd-xdg-autostart-generator[2933]: /home/zbyszek/.config/autostart/org.gnome.Terminal.desktop:256: Unknown key name 'Actions' in section 'Desktop Entry', ignoring. systemd-xdg-autostart-generator[2933]: /home/zbyszek/.config/autostart/org.gnome.Terminal.desktop:258: Unknown section 'Desktop Action new-window'. Ignoring. systemd-xdg-autostart-generator[2933]: /home/zbyszek/.config/autostart/org.gnome.Terminal.desktop:343: Unknown section 'Desktop Action preferences'. Ignoring. systemd-xdg-autostart-generator[2933]: /home/zbyszek/.config/autostart/org.telegram.desktop.desktop:12: Unknown key name 'Actions' in section 'Desktop Entry', ignoring. systemd-xdg-autostart-generator[2933]: /home/zbyszek/.config/autostart/org.telegram.desktop.desktop:13: Unknown key name 'SingleMainWindow' in section 'Desktop Entry', ignoring. systemd-xdg-autostart-generator[2933]: /home/zbyszek/.config/autostart/org.telegram.desktop.desktop:19: Unknown section 'Desktop Action Quit'. Ignoring. This is not useful. Those are externally-provided files, and they are likely to have entries which we know nothing about.
Diffstat (limited to 'src/xdg-autostart-generator')
-rw-r--r--src/xdg-autostart-generator/xdg-autostart-service.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xdg-autostart-generator/xdg-autostart-service.c b/src/xdg-autostart-generator/xdg-autostart-service.c
index 3905d4bfe1..a174648f53 100644
--- a/src/xdg-autostart-generator/xdg-autostart-service.c
+++ b/src/xdg-autostart-generator/xdg-autostart-service.c
@@ -350,7 +350,8 @@ XdgAutostartService *xdg_autostart_service_parse_desktop(const char *path) {
r = config_parse(NULL, service->path, NULL,
"Desktop Entry\0",
xdg_config_item_table_lookup, items,
- CONFIG_PARSE_WARN, service,
+ CONFIG_PARSE_RELAXED | CONFIG_PARSE_WARN,
+ service,
NULL);
/* If parsing failed, only hide the file so it will still mask others. */
if (r < 0) {