mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-10 15:54:17 +01:00
wmmenugen: Finish the XDG parser
Recognize the freedesktop.org-mandated Main Categories in .desktop files and put menu entries in the appropriate categories. Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
This commit is contained in:
committed by
Carlos R. Mafra
parent
a23b72c32a
commit
4f853ce3b6
@@ -232,12 +232,12 @@ static Bool wmc_to_wm(WMConfigMenuEntry **wmc, WMMenuEntry **wm)
|
||||
size_t slen;
|
||||
|
||||
/* only Exec is mandatory, and it's better exist in a known place */
|
||||
if (!*wmc ||
|
||||
!(*wmc)->Exec || !*(*wmc)->Exec ||
|
||||
!fileInPath((*wmc)->Exec))
|
||||
if (!((*wmc)->Exec &&
|
||||
*(*wmc)->Exec &&
|
||||
fileInPath((*wmc)->Exec)))
|
||||
return False;
|
||||
|
||||
/* normalize Exec: wmconfig tends to stuck an ampersand
|
||||
/* normalize Exec: wmconfig tends to stick an ampersand
|
||||
* at the end of everything, which we don't need */
|
||||
slen = strlen((*wmc)->Exec) - 1;
|
||||
p = (*wmc)->Exec;
|
||||
|
||||
Reference in New Issue
Block a user