Reply
Thread Tools
Posts: 486 | Thanked: 251 times | Joined on Oct 2009
#41
Originally Posted by myk View Post
Of course I will need to edit it again every time "More..." fills up it's screen.
I'm using "More..." as a dumping ground for stuff that I never use. I will probably let it drop off the bottom of the first page. Might as well get some use out of the maemo 5 "feature" of making it easy to miss that something is scrollable.
 
Posts: 18 | Thanked: 14 times | Joined on Jan 2010
#42
Attached a brief instruction for menu manipulations with complete example from my n900 (Attached zip file).

Small update:
If you have plans to use custom icons for any application then you have to execute as root gtk-update-icon-cache -f /usr/share/icons/hicolor as suggested here "Personal Menu tips and tricks" to rebuild the cache after you did copy the icon on the device. In my case it was required also to restart n900 after cache rebuilding to get icons on the place.

Useful link: Desktop file (*.desktop) format
Attached Files
File Type: zip menu_manipulations.pdf.zip (244.0 KB, 565 views)

Last edited by bbhl; 2010-01-05 at 15:55.
 

The Following 3 Users Say Thank You to bbhl For This Useful Post:
jellotherat's Avatar
Posts: 129 | Thanked: 81 times | Joined on Dec 2007 @ Austin, TX
#43
Originally Posted by myk View Post
Be careful!
I managed to muck up the menu config and the n900 went into a continuous reboot loop.
I was only able to fix it by getting a suitable remote-shell command through the 1-second window before it rebooted again.
Yeah, I did the same thing. I still haven't figured out exactly what went wrong, though. Could someone who edited their menu successfully please post their "hildon.menu" file so I can see how it differs from the standard file? Maybe then I can figure out where I went wrong.
__________________
Nokia 770 | N800 | N810 | N900 | E71
 
Posts: 18 | Thanked: 14 times | Joined on Jan 2010
#44
Originally Posted by jellotherat View Post
Yeah, I did the same thing. I still haven't figured out exactly what went wrong, though. Could someone who edited their menu successfully please post their "hildon.menu" file so I can see how it differs from the standard file? Maybe then I can figure out where I went wrong.
The strange thing happened after I did move my specific *.directory and *.desktop files to symbolic links. I haven't got a continuously rebooting n900, but it was never showing the menu again... GUI hangs if I did click any shortcuts or menu button instead. The good thing is that Ctrl+Shift+x works for me to start the terminal and sshd. It may be a reason for such a behaviour that I did execute cache update for icons along with menu/symlink modification.
The other strange thing is that now it is working with all changes I did right before I had get the "menu hang"...

Nokia-N900-42-11:~# cat /etc/xdg/menus/hildon.menu
<Menu>

<Name>Main</Name>

<!-- Search the default locations -->
<AppDir>/usr/share/applications/hildon</AppDir>
<DirectoryDir>/usr/share/applications/hildon</DirectoryDir>

<Include>
<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>
<!-- Filename>worldclock.desktop</Filename -->
<Filename>osso_calculator.desktop</Filename>
<!-- Filename>ovi.desktop</Filename -->
<Filename>hildon-control-panel.desktop</Filename>
<Filename>osso-xterm.desktop</Filename>
<Filename>hildon-application-manager.desktop</Filename>
</Include>
<Menu>
<Name>BBApplications</Name>
<Directory>bb_apps.directory</Directory>
<Include>
<Filename>bb_x11vnc_start.desktop</Filename>
<Filename>bb_x11vnc_stop.desktop</Filename>
<Filename>mc.desktop</Filename>
<Filename>filemanager.desktop</Filename>
<Filename>osso-backup.desktop</Filename>
<Filename>bb_ssh_start.desktop</Filename>
<Filename>bb_ssh_stop.desktop</Filename>
</Include>
</Menu>
<Menu>
<Name>Applications</Name>
<Directory>applications.directory</Directory>
<OnlyUnallocated/>
<Include>
<All/>
</Include>
</Menu>
</Menu>
Nokia-N900-42-11:~#

Last edited by bbhl; 2010-01-06 at 16:27.
 

The Following 2 Users Say Thank You to bbhl For This Useful Post:
jellotherat's Avatar
Posts: 129 | Thanked: 81 times | Joined on Dec 2007 @ Austin, TX
#45
Originally Posted by bbhl View Post
The strange thing happened after I did move my specific *.directory and *.desktop files to symbolic links. I haven't got a continuously rebooting n900, but it was never showing the menu again... GUI hangs if I did click any shortcuts or menu button instead. The good thing is that Ctrl+Shift+x works for me to start the terminal and sshd. It may be a reason for such a behaviour that I did execute cache update for icons along with menu/symlink modification.
The other strange thing is that now it is working with all changes I did right before I had get the "menu hang"...
Awesome! I think I see what I did wrong. I'm still having trouble getting my "applications.directory" type files correct, though. Any chance of publishing your "bb_apps.directory" file?
__________________
Nokia 770 | N800 | N810 | N900 | E71
 
Posts: 18 | Thanked: 14 times | Joined on Jan 2010
#46
Originally Posted by jellotherat View Post
Awesome! I think I see what I did wrong. I'm still having trouble getting my "applications.directory" type files correct, though. Any chance of publishing your "bb_apps.directory" file?
Here you go:
~/.bb/directory $ cat bb_apps.directory
[Desktop Entry]
Type=Directory
Name=Apps
Icon=bb_apps
X-Osso-User-Position=14
X-Maemo-Category=Main
X-Text-Domain=maemo-af-desktop

~/.bb/directory $
 

The Following User Says Thank You to bbhl For This Useful Post:
Bec's Avatar
Posts: 876 | Thanked: 396 times | Joined on Dec 2009
#47
What is "<OnlyUnallocated/>" and to what can it be changed?

Does this make any sense to you guys or is there something wrong?
“hildon.menu”
PHP 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>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>
    <
Filename>worldclock.desktop</Filename>
    <
Filename>osso_calculator.desktop</Filename>
    <
Filename>ovi.desktop</Filename>
    <
Filename>hildon-control-panel.desktop</Filename>
  </Include>

  <
Menu>
    <
Name>Applications</Name>
    <
Directory>applications.directory</Directory>
    <
OnlyUnallocated/>
    <Include>
      <
All/>
    </Include>
  </
Menu>
</
Menu>

  <
Menu>
    <
Name>new</Name>
    <
Directory>new.directory</Directory>
    <
OnlyUnallocated/>
    <Include>
      <
Filename>your-shortcut-here1.desktop</Filename>
      <
Filename>your-shortcut-here2.desktop</Filename>
      <
Filename>your-shortcut-here3.desktop</Filename>
      <
Filename>your-shortcut-here4.desktop</Filename>
    </Include>
  </
Menu>
</
Menu
and “new.directory”
PHP Code:
[Desktop Entry]
Type=Directory
Name
=new
Icon=general_applications
X
-Osso-User-Position=16
X
-Maemo-Category=Main
X
-Text-Domain=maemo-af-desktop 
Would this work right?

Thanks
 
Posts: 18 | Thanked: 14 times | Joined on Jan 2010
#48
Originally Posted by Bec View Post
What is "<OnlyUnallocated/>" and to what can it be changed?
My guess was that it means: "Do not include into this menu/sub-menu anything that belongs to other menu already"... And it looks like my guess is right since it works this way as I see.

Your menu looks ok for me from syntax point of view ... Note, that for name displayed in GUI is responsible Name=new of *.directory file.
 

The Following User Says Thank You to bbhl For This Useful Post:
Bec's Avatar
Posts: 876 | Thanked: 396 times | Joined on Dec 2009
#49
So would it be necessary to change it to <NotOnlyUnallocated/> for a new folder, because

the default "more..: contains unallocated apps and could generate some kind of conflict because on a new installation we'd have two folders for unallocated apps?
PHP Code:
<Menu>
    <
Name>Applications</Name>
    <
Directory>applications.directory</Directory>
    <
OnlyUnallocated/>
    <Include>
      <
All/>
    </Include>
  </
Menu>
</
Menu
Or would more, as a default system folder, always have priority in storing the new shortcuts?

Last edited by Bec; 2010-01-08 at 13:48.
 
Posts: 18 | Thanked: 14 times | Joined on Jan 2010
#50
Originally Posted by Bec View Post
So would it be necessary to change it to <NotOnlyUnallocated/> for a new folder, because

the default "more..: contains unallocated apps and could generate some kind of conflict because on a new installation we'd have two folders for unallocated apps?
PHP Code:
<Menu>
    <
Name>Applications</Name>
    <
Directory>applications.directory</Directory>
    <
OnlyUnallocated/>
    <Include>
      <
All/>
    </Include>
  </
Menu>
</
Menu
Or would more, as a default system folder, always have priority in storing the new shortcuts?
You should not use <OnlyUnallocated/> in your custom menu... See my example above.
 
Reply


 
Forum Jump


All times are GMT. The time now is 20:50.