| The Following User Says Thank You to ArnimS For This Useful Post: | ||
|
|
2007-08-23
, 21:10
|
|
|
Posts: 3,220 |
Thanked: 326 times |
Joined on Oct 2005
@ "Almost there!" (Monte Christo, Count of)
|
#2
|
|
|
2007-08-24
, 10:50
|
|
Posts: 393 |
Thanked: 112 times |
Joined on Jul 2007
|
#3
|
|
|
2007-08-24
, 22:47
|
|
|
Posts: 1,107 |
Thanked: 720 times |
Joined on Mar 2007
@ Germany
|
#4
|
|
|
2007-08-24
, 22:57
|
|
|
Posts: 729 |
Thanked: 19 times |
Joined on Mar 2007
|
#5
|
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>