]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
xdg-autostart: Ignore more common XDG Desktop Entry fields 17286/head
authorBenjamin Berg <bberg@redhat.com>
Thu, 8 Oct 2020 13:58:37 +0000 (15:58 +0200)
committerBenjamin Berg <bberg@redhat.com>
Fri, 9 Oct 2020 09:04:19 +0000 (11:04 +0200)
It makes sense to ignore all the common fields that are expected and
that we can safely ignore. Note that it is fine to ignore URL as we will
already warn about the type= being wrong in that case.

Closes: #17276
src/xdg-autostart-generator/xdg-autostart-service.c

index e111875b78470f9f8b63cd574ea952a2fab99158..dd90a41efdfad594ef7c7b5e6256e6c3195fa2c4 100644 (file)
@@ -340,9 +340,12 @@ XdgAutostartService *xdg_autostart_service_parse_desktop(const char *path) {
                 { "Desktop Entry", "GenericName", NULL, 0, NULL},
                 { "Desktop Entry", "Icon", NULL, 0, NULL},
                 { "Desktop Entry", "Keywords", NULL, 0, NULL},
+                { "Desktop Entry", "MimeType", NULL, 0, NULL},
                 { "Desktop Entry", "NoDisplay", NULL, 0, NULL},
                 { "Desktop Entry", "StartupNotify", NULL, 0, NULL},
+                { "Desktop Entry", "StartupWMClass", NULL, 0, NULL},
                 { "Desktop Entry", "Terminal", NULL, 0, NULL},
+                { "Desktop Entry", "URL", NULL, 0, NULL},
                 { "Desktop Entry", "Version", NULL, 0, NULL},
                 {}
         };