ArnimS
08-23-2007, 02:45 PM
Hi, i found a workable way to edit menus.
you will need vim from maemo.org
http://maemo.org/downloads/product/vim/
then install xmllint via apt-get libxml2-utils
then follow instructions on this page to add an xml parser to vim
http://www.vim.org/tips/tip.php?tip_id=1366
then execute vim ~/.osso/menus/applications.menu
then type :PrettyXML and your menu xml structure will be formatted to human-readable form.
edit and save your menus, taking care to preserve correct structure - starting tags must have matching closing tags for e.g.
when hitting the menu for the first time, i get some errors (menu closes again) but hitting menu second time works.
--------------------
example
<Menu>
<Name>Media</Name>
<Include>
<Filename>mplayer.desktop</Filename>
<Filename>streamtuner.desktop</Filename>
<Filename>maemo_recorder.desktop</Filename>
<Filename>osso-music-player.desktop</Filename>
<Filename>video-player.desktop</Filename>
</Include>
</Menu>
you will need vim from maemo.org
http://maemo.org/downloads/product/vim/
then install xmllint via apt-get libxml2-utils
then follow instructions on this page to add an xml parser to vim
http://www.vim.org/tips/tip.php?tip_id=1366
then execute vim ~/.osso/menus/applications.menu
then type :PrettyXML and your menu xml structure will be formatted to human-readable form.
edit and save your menus, taking care to preserve correct structure - starting tags must have matching closing tags for e.g.
when hitting the menu for the first time, i get some errors (menu closes again) but hitting menu second time works.
--------------------
example
<Menu>
<Name>Media</Name>
<Include>
<Filename>mplayer.desktop</Filename>
<Filename>streamtuner.desktop</Filename>
<Filename>maemo_recorder.desktop</Filename>
<Filename>osso-music-player.desktop</Filename>
<Filename>video-player.desktop</Filename>
</Include>
</Menu>