On Tue, Sep 29, 2009 at 08:31:20PM +0200, Daniel Isenmann wrote: > > > Works without problems here. > > It does not support <DefaultLayout>, <Layout> and it's children. > Maybe I missed that point, I don't really know what you mean with > <DefaultLayout>, <Layout> and it's children. Can you explain it more > detail? Oops. Default applications.menu was empty, somehow on my system gnome-applications.menu contains valid menu structure. It's distribution specific and this script works for me too.
Layout&Co described here - http://standards.freedesktop.org/menu-spec/latest/ar01s04.html#menu-file-elements -- Regards, Sir Raorn.
<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN" "http://www.freedesktop.org/standards/menu-spec/1.0/menu.dtd"> <Menu> <Name>Applications</Name> <Directory>altlinux-main.directory</Directory> <!-- Search the default locations --> <DefaultAppDirs/> <DefaultDirectoryDirs/> <DefaultLayout> <Merge type="menus"/> <Merge type="files"/> <Separator/> <Menuname>More</Menuname> </DefaultLayout> <Layout> <Merge type="menus"/> <Menuname>Applications</Menuname> <Merge type="files"/> </Layout> <DefaultMergeDirs/> <MergeFile>applications-menueditor.menu</MergeFile> </Menu>
signature.asc
Description: Digital signature
