Menu entries/Order/Separators

The standard panel of LXDE - http://wiki.lxde.org/en/LXPanel
Bombo
Posts: 1
Joined: Fri Aug 09, 2013 4:43 pm

Menu entries/Order/Separators

Postby Bombo » Fri Dec 16, 2016 6:48 pm

Hi,

I'm using LXDE from debian/jessie.

How do i add a separator to a menu or define the order of the entries?

This is what i got so far:

~/.config/menus/applications-merged/foo.menu

Code: Select all

<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN" "http://www.freedesktop.org/standards/menu-spec/menu-1.0.dtd">
<Menu>
   <Name>Applications</Name>
   
   <Menu>
      <Name>Foo</Name>
      <Directory>foo.directory</Directory>
      <Include> <Filename>foo.desktop</Filename> </Include>
   </Menu>
   
   <DefaultLayout>
      <Separator/>
      <Menuname>egal</Menuname>
      <Separator/>
      <Merge type="menus"/>
      <Merge type="files"/>
      </DefaultLayout>
     
   <Layout>
      <Separator/>
      <Menuname>egal</Menuname>
      <Separator/>
      <Merge type="menus"/>
      <Merge type="files"/>
      </Layout>
</Menu>


then

~/.local/share/applications/foo.desktop

Code: Select all

[Desktop Entry]
Encoding=UTF-8
Exec=lxterminal -e foo
Icon=lxterminal
Type=Application
Name=Foo Bar Baz.


and

~/.local/share/desktop-directories/foo.directory

Code: Select all

[Desktop Entry]
Encoding=UTF-8
Icon=folder
Name=foo


the menu works, but for some reason i don't see the separators...

Return to “LXPanel”

Who is online

Users browsing this forum: No registered users and 1 guest