View Single Post
Posts: 66 | Thanked: 9 times | Joined on Mar 2010 @ Netherlands
#83
Originally Posted by GrimmReaperNL View Post
@ uncleboarder:
i read somewhere on these forums that when you goto a folder in the webbrowser and favorite the folder. you can add the folder as a favorite to your desktop.

as for these folder makings. someone said the instructions need a re-write.
would someone be so kind to make a walk-through of sorts of what files i need to edit and where to place them?

I'm new to linux and maemo but learn and see things rather quickly.

(have root access with MC and have a ssh connection with an almost full backup. so if i mess up i can reupload the originals)

help would be appreciated
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?

Last edited by GrimmReaperNL; 2010-03-23 at 02:54. Reason: added "<OnlyUnallocated/>" for awesomeness
 

The Following User Says Thank You to GrimmReaperNL For This Useful Post: