1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-11 08:54:14 +01:00

Omit field-code in Exec fields when generating menu-entries from XDG desktop-files.

Exec fields in desktop-files may include field-codes which act as
place-holders for command-line arguments.  Previously the Exec arguments
were being passed through intact.  However, since Window Maker has no
support for expanding the field-codes, we now remove them and preserve
the remaining arguments.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
This commit is contained in:
Jeremy Sowden
2019-06-20 21:23:54 +01:00
committed by Carlos R. Mafra
parent 41ab926090
commit 9330a021e5

View File

@@ -269,7 +269,10 @@ static char *parse_xdg_exec(char *exec)
if (*src == '%')
*dst++ = *src;
else if (strchr ("fFuUdDnNickvm", *src))
*dst++ = *src;
/*
* Skip valid field-code.
*/
;
else
/*
* Invalid field-code.