mirror of
https://github.com/gryf/wmaker.git
synced 2026-11-24 08:36:55 +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:
1 parent
41ab926090
commit
9330a021e5
1 file changed
+4
-1
@@ -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