mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-20 16:55:46 +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:
committed by
Carlos R. Mafra
parent
41ab926090
commit
9330a021e5
@@ -269,7 +269,10 @@ static char *parse_xdg_exec(char *exec)
|
|||||||
if (*src == '%')
|
if (*src == '%')
|
||||||
*dst++ = *src;
|
*dst++ = *src;
|
||||||
else if (strchr ("fFuUdDnNickvm", *src))
|
else if (strchr ("fFuUdDnNickvm", *src))
|
||||||
*dst++ = *src;
|
/*
|
||||||
|
* Skip valid field-code.
|
||||||
|
*/
|
||||||
|
;
|
||||||
else
|
else
|
||||||
/*
|
/*
|
||||||
* Invalid field-code.
|
* Invalid field-code.
|
||||||
|
|||||||
Reference in New Issue
Block a user