maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Making folders and managing icons (https://talk.maemo.org/showthread.php?t=37874)

warpstalker 2010-01-16 11:44

Re: Making folders and managing icons
 
1 Attachment(s)
After the update my menu got all messed up... Did that happen to anyone else? The menu is completely ignoring my conf file, I think...

Bec 2010-01-16 11:49

Re: Making folders and managing icons
 
How does your "hildon.menu" look like?

Please post a copy

warpstalker 2010-01-16 11:55

Re: Making folders and managing icons
 
I wanted to exclude all the useless items from my menus and reorganized the rest into a more logical (to me) setup.

I checked the spec for the exclude and it should work like that. As a matter of fact, this conf did work for me before the update.

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>
    <!-- row 1 -->
    <Filename>browser.desktop</Filename>
    <Filename>mediaplayer.desktop</Filename>
    <Filename>image-viewer.desktop</Filename>
    <Filename>filemanager.desktop</Filename>
    <Filename>nokia-maps.desktop</Filename>
    <!-- row 2 -->
    <Filename>rtcom-call-ui.desktop</Filename>
    <Filename>osso-addressbook.desktop</Filename>
    <Filename>rtcom-messaging-ui.desktop</Filename>
    <Filename>modest.desktop</Filename>
    <Filename>calendar.desktop</Filename>
    <!-- row 3 -->
    <Filename>osso_calculator.desktop</Filename>
    <Filename>osso-xterm.desktop</Filename>
    <Filename>hildon-application-manager.desktop</Filename>
    <Filename>hildon-control-panel.desktop</Filename>
    <!-- more -->
  </Include>

  <Menu>
    <Name>Applications</Name>
    <Directory>applications.directory</Directory>
    <OnlyUnallocated/>
    <Include>
      <All/>
    </Include>
    <!-- exclude useless stuff -->
    <Exclude> 
    <!-- general stuff -->
    <Filename>ovi.desktop</Filename>
    <Filename>osso-backup.desktop</Filename>
    <Filename>tutorial-launcher.desktop</Filename>
    <Filename>dtg.desktop</Filename>
    <!-- internet apps -->
    <Filename>amazon.desktop</Filename>
    <Filename>ap.desktop</Filename>
    <Filename>facebook.desktop</Filename>
    <Filename>foreca.desktop</Filename>
    <!-- games -->
    <Filename>chess_startup.desktop</Filename>
    <Filename>mahjong_startup.desktop</Filename>
    <!--<Filename>maemoblocks.desktop</Filename>-->
    <Filename>osso_lmbarbles.desktop</Filename> 
    </Exclude>
  </Menu>

</Menu>


chainreaction 2010-01-16 12:11

Re: Making folders and managing icons
 
I seem to have the same problem as warpstalker, though I tried mymenu and catoriser before the upgrade but uninstalled them. For my eyes the hildon.menu looks pretty much standard. I took a backup of the one that I'm using and tried the few backups that were there already. No change. The problem is just with the order. So I used to have the normal order before upgrade, but after upgrade the order is messed up. Any idea?

Rob1n 2010-01-16 12:27

Re: Making folders and managing icons
 
What's changed now is that the ordering is explicitly defined in the .menu file rather than being picked up from the .desktop files. Have a look at the default hildon.menu (it should be in the same directory with an added extension as dpkg couldn't install it) for the details, but there's basically an extra <Layout> section.

Incidentally, all of this can now be done from within the user directory (see /home/user/.config/menus/hildon.menu) so there's no need to modify the system files.

warpstalker 2010-01-16 13:30

Re: Making folders and managing icons
 
Quote:

Originally Posted by Rob1n (Post 476029)
What's changed now is that the ordering is explicitly defined in the .menu file rather than being picked up from the .desktop files. Have a look at the default hildon.menu (it should be in the same directory with an added extension as dpkg couldn't install it) for the details, but there's basically an extra <Layout> section.

Incidentally, all of this can now be done from within the user directory (see /home/user/.config/menus/hildon.menu) so there's no need to modify the system files.

Ahh! Thanks. This is a nice improvement indeed. I just have to move my xml around a bit so it works again.

Bec 2010-01-17 17:50

Re: Making folders and managing icons
 
This thread needs a serious update after PR 1.1, please don't mess around unless you really know what you're doing.

jakiman 2010-01-18 03:02

Re: Making folders and managing icons
 
Actually, even after 1.1 update, the main tricks mentioned here works.

I have renamed the More... icon with Apps and still have a separate Games folder icon for all the games.
Folders are now sorted to the front in alphabetical order automatically it seems if it does not have any specific location value.

So I have "Apps" as my first icon and "Games" second as below. =)
(I might modify the files so that other apps are sorted alphabetically also)

http://img69.imageshack.us/img69/925...0011813575.png

All the icons inside Apps and Games are sorted alphabetically.
(This seems to be the new default ordering for PR 1.1 update)

If all these editing isn't your thing, just use Catorise or MyMenu apps.

viegas 2010-01-22 20:49

Re: Making folders and managing icons
 
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>

  <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>hildon-application-manager.desktop</Filename>
    <Filename>osso-xterm.desktop</Filename>
  </Include>
  <Menu>
  <Name>Jogos</Name>
  <Directory>jogosg.directory</Directory>
  <Include>
    <Filename>wormux.desktop</Filename>
    <Filename>vgba.desktop</Filename>
    <Filename>vgb.desktop</Filename>
    <Filename>supertux.desktop</Filename>
    <Filename>crazyparking.desktop</Filename>
    <Filename>tennix.desktop</Filename>
    <Filename>prboom.desktop</Filename>
    <Filename>angrybirds.desktop</Filename>
    <Filename>bounce.desktop</Filename>
    <Filename>chess_startup.desktop</Filename>
    <Filename>hex-a-hop.desktop</Filename>
    <Filename>ines.desktop</Filename>
    <Filename>offscr-solitaire.desktop</Filename>
    <Filename>offscr-discs.desktop</Filename>
    <Filename>burgerspace.desktop</Filename>
    <Filename>osso_lmarbles.desktop</Filename>
    <Filename>maemosec_certman_mimehandler.desktop</Filename>
    <Filename>maemoblocks.desktop</Filename>
</Include>
</Menu>
  <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>
    <Filename>worldclock.desktop</Filename>
    <Filename>osso_calculator.desktop</Filename>
    <Filename>ovi.desktop</Filename>
    <Filename>hildon-control-panel.desktop</Filename>
    <Menuname>Applications</Menuname>
    <Merge type="all"/>
  </Layout>

  <MergeDir>hildon/</MergeDir>

</Menu>

How do I add one more folder? I already have tried but without sucess...

any hint? i'm kinda noob at this...

jakiman 2010-01-23 00:12

Re: Making folders and managing icons
 
Here is my current hildon.menu as per my screenshot above.

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 games.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

This is my applications.directory file contents:
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



All times are GMT. The time now is 13:34.

vBulletin® Version 3.8.8