After installing GNOME on my Redhat 6.0 system I noticed that a lot of the the menus in 'fvwm2' had an entry with the same name as the title of the directory but which didn't do anything when clicked on. Investigation showed this in the (generated) fvwmrc file: # The following is added by package: Games AddToMenu AUTO_WM_CONFIG.Games "Games" Exec & Further investigation showed that this line was being added by 'wmconfig'(v 0.9.5) when it parsed "/usr/share/gnome/apps/Games/.directory". That file, I guess, contains info that GNOME uses when it generates menu titles. I think the easiest (and probably correct) fix is to change (in "input-gnome.c" in 'read_gnome_file()'): if (!dentry->name && !dentry->exec[0]) { gnome_desktop_entry_free(dentry); return -1; } to: if (!dentry->name || !dentry->exec[0]) { gnome_desktop_entry_free(dentry); return -1; } That way if, in general, there is some config file out there which gives no 'exec' line, it won't be added to the menu. ps. I noted that this has not been changed in 'wmconfig' 0.9.7, either.
I recompiled wmconfig to ignore the dot entries in a directory. The wmconfig binary out of 6.1 should work okay (and continue to work with 6.0, fwiw)