#785406 xfce4: submenu no longer displays if it contains only other submenus but no items

#785406#5
Date:
2015-05-15 17:55:36 UTC
From:
To:
Dear Maintainer,

===========================================================================

After upgrading xfce4 (from 0.5.4-1 to 0.8.0-2) I noticed that just one
of the submenus I had customized with xdg-desktop-menu no longer
displayed. It was the only only one that contained only other
(non-empty) submenus but no individual items.

When I added one filename to this submenu, it then displayed fully,
including all its submenus. This was not necessary previously with xfce4 0.5.4-1.

Here is the piece of the ~/.config/menus/my.menu file that didn't
display in application launchers or the general applications menu in
xfwm4 until I added the extra item:

      <Menu>
        <Name>Internet</Name>
        <Directory>Internet.directory</Directory> ### entire Internet directory did not appear

         <Include>
			<Filename>Browsers-opera.desktop</Filename>  ### needed to add just one Filename
         </Include>                                      ### for Internet and submenus to appear

        <Menu>
         <Name>Browsers</Name>
         <Directory>Browsers.directory</Directory>

         <Include>
            <Category>Jack-Browsers</Category>
         </Include>
        </Menu>

        <Menu>
         <Name>Email</Name>
         <Directory>Email.directory</Directory>
         <Include>
            <Category>Jack-Email</Category>
         </Include>
        </Menu>

        <Menu>
         <Name>Network</Name>
         <Directory>Network.directory</Directory>
         <Include>
            <Category>Jack-Network</Category>
         </Include>
        </Menu>

       </Menu>

This is a major inconvenience until one finds the cause.

===========================================================================