View Single Post
Posts: 66 | Thanked: 9 times | Joined on Mar 2010 @ Netherlands
#15
you can make your own menu like this:
Originally Posted by GrimmReaperNL View Post
right, being mr.impatient and curious i started messing about myself.

this gets all installed apps;
then, in the 'layout' section i add the folders i want using "<menuname>" and the name of the menu i want;
then, it dumps all shortcuts beneath it.

hildon.menu
Code:
<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
 "http://www.freedesktop.org/standards/menu-spec/menu-1.0.dtd">

<Menu>

  <Name>Main</Name>

  <!-- Search only in the hildon directory. -->
  <AppDir>/usr/share/applications/hildon</AppDir>
  <DirectoryDir>/usr/share/applications/hildon</DirectoryDir>
  <MergeDir>hildon/</MergeDir>
  <OnlyUnallocated/>

  <Include>
    <All/>
  </Include>

  <Layout>
    <Menuname>Grimm</Menuname>
    <Merge type="all"/> 
  </Layout>


</Menu>
then, for the added menu i made a new file in the /etc/xdg/menus/hildon directory called 'Grimm.menu'
with the following code:

Code:
<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
 "http://www.freedesktop.org/standards/menu-spec/menu-1.0.dtd">

<Menu>
  <Name>Main</Name>
  
  <Menu>
    <Name>Grimm</Name>
    <Directory>Grimm.directory</Directory>

    <Include>
     <Filename>mc.desktop</Filename>
    </Include>
  </Menu>

</Menu>
"<name>" must match the "<menuname>" from the 'hildon.menu' file.
in the "<Include>" section you add the names of the '.desktop' files you want that that specific menu.
"<directory>" is the link to the directory file in /usr/share/applications/hildon with the code:
Code:
[Desktop Entry]
Type=Directory
Name=Grimm
Icon=general_applications
X-Osso-User-Position=14
X-Maemo-Category=Main
X-Text-Domain=maemo-af-desktop
where "Name" is the name of the folder shown in the 'main' menu.
using "X-Osso-User-Position=" you can possition the folder where you want it, know that everything without a number gets added underneath all the things with a number.
this currently being my only one with a number, eventhough its 14, its still at the top.

if you want to add another folder just make another '.menu' and '.directory' and add the name to the 'include' list in 'hildon.menu'

does this help anyone? anything i could/should change to make it better?
threadL http://talk.maemo.org/showthread.php...on.menu&page=9
 

The Following 2 Users Say Thank You to GrimmReaperNL For This Useful Post: