projects
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fce5243
)
xdg-autostart: Ignore more common XDG Desktop Entry fields
author
Benjamin Berg
<bberg@redhat.com>
Thu, 8 Oct 2020 13:58:37 +0000
(15:58 +0200)
committer
Michael Biebl
<biebl@debian.org>
Thu, 19 Nov 2020 21:35:48 +0000
(21:35 +0000)
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
(cherry picked from commit
51ac77d58c03f337e1347263eb4995e1f9947a9d
)
Gbp-Pq: Name xdg-autostart-Ignore-more-common-XDG-Desktop-Entry-fields.patch
src/xdg-autostart-generator/xdg-autostart-service.c
patch
|
blob
|
history
diff --git
a/src/xdg-autostart-generator/xdg-autostart-service.c
b/src/xdg-autostart-generator/xdg-autostart-service.c
index 1bd05fcf8c3d8190b03449e606f572d4ecb26d62..b2b8c4ce09dd5c596a809e18805e287d3ca3e40e 100644
(file)
--- a/
src/xdg-autostart-generator/xdg-autostart-service.c
+++ b/
src/xdg-autostart-generator/xdg-autostart-service.c
@@
-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},
{}
};