tags 532214 + patch thanks Hi Albin!
On Sun, 07 Jun 2009 23:18:07 +0200, Albin Tonnerre wrote: > On Sun, Jun 07, 2009 at 11:01:34PM +0200, Luca Capello wrote : >> Is not efreet responsible to parse .desktop file as well? > > Yes, it is. But it does not /decide/ anything about them. Efreet knows about > your .desktop files, and builds a menu based on the rules given by your .menu > file. OK, now I (think I) have understood, thank you for the explanation. > No, your menu file is faulty. If a particular .desktop is not shown on the > desktop, it's because the .menu has no rule matching it (or because of a bug > in > efreet's code, like #514018, but unlikely related to the specification itself) > >> Please feel free to ask for more examples, it seems I am not able to >> pass the message, sorry. > > I don't think this is necessary. However, I'd like to see what menu file e17 > is > using. You can find that out by running the following command: > > eet -d .e/e/config/<profile>/e.cfg config /dev/stdout | grep > default_system_menu > > If the result is empty, it's using either ~/.config/menus/applications.menu , > /etc/xdg/menus/applications.menu , or /etc/xdg/menus/e17-applications.menu > (sorted). I suspect it's using the e17-provided menu, which would actually > cause > your issue Indeed: ===== debian-gta01:~# eet -d .e/e/config/illume/e.cfg config /dev/stdout | grep default_system_menu debian-gta01:~# ls ~/.config/menus/applications.menu ls: cannot access /root/.config/menus/applications.menu: No such file or directory debian-gta01:~# ls /etc/xdg/menus/applications.menu ls: cannot access /etc/xdg/menus/applications.menu: No such file or directory debian-gta01:~# ls /etc/xdg/menus/e17-applications.menu ls: cannot access /etc/xdg/menus/e17-applications.menu: No such file or directory debian-gta01:~# ls /etc/xdg/menus/enlightenment-applications.menu /etc/xdg/menus/enlightenment-applications.menu debian-gta01:~# ===== Now I understand better your first reply ;-) On Sun, 07 Jun 2009 21:11:17 +0200, Albin Tonnerre wrote: > For the record, this menu is only provided as a fallback menu in case the user > doesn't have any, and was never made to be spec-compliant or anything. Now > that > e17 has a decent way to select a default menu via the wizard module, I think > I'll just drop it and make e17 depend on menu-xdg. Suggestions ? menu-xdg alone does nothing and it needs menu: ===== debian-gta01:~# apt-get install menu menu-xdg [...] The following NEW packages will be installed: menu menu-xdg 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 433kB of archives. After this operation, 2019kB of additional disk space will be used. [...] debian-gta01:~# ===== Please do not add other dependencies, especially if they can be avoided: 2MB can be a lot on an embedded system like the Openmoko devices. Instead, keep providing a fallback menu. Considering the other major DEs: |-------------+---------------+-------------+--------------+---------------| | fdo-specs | GNOME | KDE4 | XFCE | LXDE | |-------------+---------------+-------------+--------------+---------------| | AudioVideo | Sound & Video | Multimedia | Multimedia | Audio & Video | | Development | Programming | Development | Development | Development | | Education | Education | Education | Education | Education | | Game | Games | Games | Games | Game | | Graphics | Graphics | Graphics | Graphics | Graphics | | Network | Internet | Internet | Network | Network | | Office | Office | Office | Office | Office | | Settings | Settings | Settings | Settings | Settings | | System | System Tools | System | System Tools | System Tools | | Utility | Accessories | Utilities | Accessories | Accessories | |-------------+---------------+-------------+--------------+---------------| Some comments: 1) in GNOME and XFCE, the Settings category is showed in the DE-specific setting menu, I do not how to do that for E17, thus a separator is the best thing 2) describing the category, the specs themselves suggests AudioVideo = Multimedia System = System Tools Utilities = Accessories Attached a patch to render the enlightenment-applications.menu freedesktop.org compliant, based on my personal preferences :-) Thx, bye, Gismo / Luca --8<---------------cut here---------------start------------->8--- <?xml version="1.0"?> <!DOCTYPE Menu PUBLIC '-//freedesktop//DTD Menu 1.0//EN' 'http://standards.freedesktop.org/menu-spec/menu-1.0.dtd'> <Menu> <Name>Applications</Name> <DefaultDirectoryDirs/> <DefaultAppDirs/> <Layout> <Menuname>Accessories</Menuname> <Menuname>Development</Menuname> <Menuname>Education</Menuname> <Menuname>Games</Menuname> <Menuname>Graphics</Menuname> <Menuname>Multimedia</Menuname> <Menuname>Network</Menuname> <Menuname>Office</Menuname> <Menuname>System Tools</Menuname> <Separator/> <Menuname>Settings</Menuname> </Layout> <Menu> <Name>Accessories</Name> <Include><Category>Utility</Category></Include> </Menu> <Menu> <Name>Development</Name> <Include><Category>Development</Category></Include> </Menu> <Menu> <Name>Education</Name> <Include><Category>Education</Category></Include> </Menu> <Menu> <Name>Games</Name> <Include><Category>Game</Category></Include> </Menu> <Menu> <Name>Graphics</Name> <Include><Category>Graphics</Category></Include> </Menu> <Menu> <Name>Multimedia</Name> <Include><Category>AudioVideo</Category></Include> </Menu> <Menu> <Name>Network</Name> <Include><Category>Network</Category></Include> </Menu> <Menu> <Name>Office</Name> <Include><Category>Office</Category></Include> </Menu> <Menu> <Name>System Tools</Name> <Include><And><Category>System</Category> <Not><Category>Settings</Category></Not></And> </Include> </Menu> <Menu> <Name>Settings</Name>g <Include><And><Category>Settings</Category> <Not><Category>System</Category></Not></And> </Include> </Menu> </Menu> --8<---------------cut here---------------end--------------->8---
pgpqcrZ8yRH0a.pgp
Description: PGP signature