The Following User Says Thank You to Helmuth For This Useful Post: | ||
|
2010-06-22
, 15:31
|
|
Posts: 267 |
Thanked: 408 times |
Joined on May 2010
@ Austria
|
#142
|
python /opt/ApMeFo/Main.py
|
2010-06-22
, 16:53
|
|
Posts: 19 |
Thanked: 1 time |
Joined on Jun 2010
@ Sevilla
|
#143
|
|
2010-06-22
, 17:53
|
|
Posts: 19 |
Thanked: 1 time |
Joined on Jun 2010
@ Sevilla
|
#144
|
|
2010-06-22
, 18:11
|
|
Posts: 267 |
Thanked: 408 times |
Joined on May 2010
@ Austria
|
#145
|
python /opt/ApMeFo/Main.py
The Following 2 Users Say Thank You to Nathraiben For This Useful Post: | ||
|
2010-06-27
, 01:16
|
|
Posts: 96 |
Thanked: 16 times |
Joined on Jan 2010
@ Denver, CO -> Italy
|
#146
|
<OnlyUnallocated/> <Include> <All/> </Include> <MergeDir>submenus</MergeDir> <Layout> <Filename>browser.desktop</Filename> <Filename>mediaplayer.desktop</Filename> <Filename>calendar.desktop</Filename> <Filename>image-viewer.desktop</Filename> <Filename>osso-addressbook.desktop</Filename> <Filename>rtcom-call-ui.desktop</Filename> <Filename>nokia-maps.desktop</Filename> <Filename>camera-ui.desktop</Filename> <Filename>modest.desktop</Filename> <Filename>rtcom-messaging-ui.desktop</Filename> <Menuname>Games.directory</Menuname> <Menuname>App.directory</Menuname> </Layout> </Menu>
|
2010-06-28
, 17:28
|
Posts: 33 |
Thanked: 2 times |
Joined on Jun 2010
|
#147
|
|
2010-07-10
, 04:36
|
|
Posts: 96 |
Thanked: 16 times |
Joined on Jan 2010
@ Denver, CO -> Italy
|
#148
|
I have a question:
It is possible to modify the position of one menu that is created using the <layout> inside hildon.menu?
for example something like this:
Code:<OnlyUnallocated/> <Include> <All/> </Include> <MergeDir>submenus</MergeDir> <Layout> <Filename>browser.desktop</Filename> <Filename>mediaplayer.desktop</Filename> <Filename>calendar.desktop</Filename> <Filename>image-viewer.desktop</Filename> <Filename>osso-addressbook.desktop</Filename> <Filename>rtcom-call-ui.desktop</Filename> <Filename>nokia-maps.desktop</Filename> <Filename>camera-ui.desktop</Filename> <Filename>modest.desktop</Filename> <Filename>rtcom-messaging-ui.desktop</Filename> <Menuname>Games.directory</Menuname> <Menuname>App.directory</Menuname> </Layout> </Menu>
the above example actually does not work, those menu are always listed alphabetically.
Thanks
Nico
|
2010-08-20
, 12:34
|
Posts: 122 |
Thanked: 17 times |
Joined on Jun 2010
|
#149
|
Here is my current hildon.menu as per my screenshot above.
This is my games.directory file contents: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 the default locations --> <AppDir>/usr/share/applications/hildon</AppDir> <DirectoryDir>/usr/share/applications/hildon</DirectoryDir> <Include> <Filename>osso-xterm.desktop</Filename> <Filename>browser.desktop</Filename> <Filename>mediaplayer.desktop</Filename> <Filename>filemanager.desktop</Filename> <Filename>calendar.desktop</Filename> <Filename>image-viewer.desktop</Filename> <Filename>osso-addressbook.desktop</Filename> <Filename>osso_sketch.desktop</Filename> <Filename>nokia-maps.desktop</Filename> <Filename>modest.desktop</Filename> <Filename>rtcom-messaging-ui.desktop</Filename> <Filename>hildon-control-panel.desktop</Filename> <Filename>hildon-application-manager.desktop</Filename> </Include> <Menu> <Name>Games</Name> <Directory>games.directory</Directory> <Include> <Filename>bounce.desktop</Filename> <Filename>drnoksnes.desktop</Filename> <Filename>flobopuyo.desktop</Filename> <Filename>osso_lmarbles.desktop</Filename> <Filename>angrybirds.desktop</Filename> <Filename>vgba.desktop</Filename> <Filename>givemefive.desktop</Filename> <Filename>mahjong_startup.desktop</Filename> <Filename>chess_startup.desktop</Filename> <Filename>maemoblocks.desktop</Filename> <Filename>duke3dsw.desktop</Filename> <Filename>offscr-airport.desktop</Filename> <Filename>offscr-xploder.desktop</Filename> <Filename>offscr-labyrinth-lite.desktop</Filename> <Filename>stratagus.desktop</Filename> </Include> </Menu> <Menu> <Name>Applications</Name> <Directory>applications.directory</Directory> <OnlyUnallocated/> <Include> <All/> </Include> </Menu> </Menu>
This is my applications.directory file contents:Code:[Desktop Entry] Type=Directory Name=Games Icon=general_folder X-Osso-User-Position=14 X-Maemo-Category=Main X-Text-Domain=maemo-af-desktop
Code:[Desktop Entry] Type=Directory Name=Apps Icon=general_folder X-Osso-User-Position=01 X-Maemo-Category=Main X-Text-Domain=maemo-af-desktop
|
2010-09-15
, 17:48
|
Posts: 30 |
Thanked: 4 times |
Joined on Sep 2010
|
#150
|
(Wow... I exceeded the word limit )
Appendix 1: Help, I messed up!
(This section might be expanded when more problems and solutions are found )
I did something wrong and now nothing works! Not even my desktop icons!
The desktop is actually also a part of the Hildon framework, so if we mess around with hildon.menu we risk messing up EVERYTHING.
Luckily, there's a way to still access your X Terminal - all it takes are nimble fingers, since the (hardware) keyboard combination for that is Cntr+Shift+X... :P
Once in the terminal, you can either delete the faulty hildon.menu file
or open it with the text editor in order to replace the incorrect code (most probably a simple type - especially check for missing slashes in closing tags)Code:rm /home/user/.config/menus/hildon.menu
After finishing my new folder simply doesn't show up and all it's content is still in the main folder...Code:pygtkeditor /home/user/.config/menus/hildon.menu
In my experience, this hints on a typo in your [nameoffolder].menu file. If it is not valid XML (again, most probably simply thanks to a minor typo), Hildon will simply ignore it.
Thankfully, it seems like it's not messing up the whole system like hildon.menu does, so you should be fine simply looking for the typo and correct it. No breaking your fingers while trying to hit Ctrl-Shift-X...
My folder is there, but it's really ugly - why is it not showing the icon I assigned it???
So far I've found two possible errors that make the icon not show, both inside your [nameoffolder].directory file:
1) If it shows a simple blue block instead, it's most probably a typo in the icon=[] line.
2) If it shows the former "More..." icon (a colourful array of boxes), the .directory file is either not valid or missing (for example, when there's a typo in the reference to this file from within [nameoffolder].menu). In that case, especially check whether there are any typos in the header "[Desktop Entry]" or the line beneath - and whether the line <Directory>[nameoffile].directory</Directory> in your .menu file is okay, too.
If anything is unclear or you found any mistakes, please let me know so I can edit my posts in order to prevent others from following false instructions.
Also, feel free to do with this text as you please - modify, re-publish, print and hang it over your bed...
(Good karma to those who add a tiny little credit comment when re-publishing it )
Above all, please let me know whether this was at least moderately useful. And if not, just let me know why...
Note: You can see your upload to the extra devel cataloge earlier at your N900 than on the website.
And it was no request, it was a suggestion for others... just in the case someone would contribute but has no idea or imagination what is useful enought to create.