Add support for creating pekwm menus. The application menus can be
placed in a submenu or not, have icons or not and the XDG Path attribute
works.
The menus can be either static or dynamically generated.
The default terminal emulator can be specified by each user individually
in a ~/.config/xdgmenumaker.cfg file. In case the file is not there, or
one is not specified, default to the debian alternatives system on
debian and debian-likes and xterm in any other case.
On debian and debian-like distributions there is an x-terminal-emulator
symlink that points to the preferred terminal emulator to use. So, if
we're on debian, use this instead of defaulting to xterm.
This only works with fluxbox, as to the best of my knowledge windowmaker
and icewm don't allow switching to another directory with cd and then
executing the command.
Thanks to Gregor Bollerhey (gregor-b on github) for making the initial
pull request about this issue.
If a .desktop file is present in more than one locations, use only the
.desktop file that should take precedence (e.g. the one in
~/.local/share/applications/ over the one in /usr/share/applications/.
that path, rather than stripping the path and trying to find a
matching icon. This allows for applications that use an icon in a
non-standard directory.
Using the --no-submenu option, a submenu that includes all category
menus is not created. All category menus are placed in the top level
menu. Only usable with fluxbox for now.