Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Making folders and managing icons

    Reply
    Page 9 of 16 | Prev |   7     8   9   10     11   | Next | Last
    GrimmReaperNL | # 81 | 2010-03-22, 00:54 | Report

    @ 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

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Matan | # 82 | 2010-03-22, 09:15 | Report

    Originally Posted by uncleboarder View Post
    Everything I've read here seems to be about building & modifying folders within the application menu. I like that, but I want to access those folders... or at least the application menu, directly from my desktop.

    Normally, if you nave nothing running in the background, it's a simple click to get the application menu. But if you have other apps running, you have to go though the current apps screen first. So... it it possible to build a widget or something to go directly to an application folder... if not, then at least a widget or shortcut from desktop directly to the application menu??
    Using modified-hildon-desktop (see my signature) you can open the application menu (called launcher) with a simple dbus command. You can write a one-line script that sends this command (the package keyboard-shortcuts includes such script), and you can use a widget that allows running scripts to use it on the desktop.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to Matan For This Useful Post:
    uncleboarder

     
    GrimmReaperNL | # 83 | 2010-03-23, 02:38 | Report

    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?

    Edit | Forward | Quote | Quick Reply | Thanks

    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:
    uncleboarder

     
    uncleboarder | # 84 | 2010-03-28, 16:21 | Report

    Originally Posted by Matan View Post
    Using modified-hildon-desktop (see my signature) you can open the application menu (called launcher) with a simple dbus command. You can write a one-line script that sends this command (the package keyboard-shortcuts includes such script), and you can use a widget that allows running scripts to use it on the desktop.
    I'm getting there.

    By installing your keyboard commands, I've now made a widget for "dbus-hildon-desktop set_state 128" and it launches the Application screen. YEA!!!

    And then using Grimm's example I've created my own menu...

    So the next question is... How do I modify the syntax of your dbus command to launch the Grimm menu? (and then additional menus too)

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by uncleboarder; 2010-03-28 at 16:35.

     
    Matan | # 85 | 2010-03-28, 18:14 | Report

    I do not understand the question. There is only one menu (launcher) in each device, the the dbus command opens this launcher.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    uncleboarder | # 86 | 2010-03-28, 18:54 | Report

    By following Grimm's example, I now have a menu called "Grimm" which is equivalent to "More.." However the "Grimm" menu is customized so that it contains only a few applications. I want to be able to get to the "Grimm" Menu from a widget. Just like I can now do with your dbus command.

    Your dbus command gets me to the application menu, I want to get to the "Grimm" menu.

    Of course the "Grimm" menu is just an example that he created. It could be any menu screen.

    I hope that makes sense?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    uncleboarder | # 87 | 2010-03-28, 19:00 | Report

    It seems that your dbus command is somehow running this script?

    /etc/xdg/menus/hildon/applications.menu

    I want to somehow run this script...

    /etc/xdg/menus/grimm/grimm.menu

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Matan | # 88 | 2010-03-28, 19:21 | Report

    This is not how it works. There is only one menu defined, and it is in /etc/xdg/menus/hildon/applications.menu (or in home directory for newer hildon-desktop.) The file /etc/xdg/menus/grimm/grimm.menu is ignored by the system, whether you launch the launcher with dbus or by pressing the icon in the corner.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    uncleboarder | # 89 | 2010-03-28, 19:40 | Report

    So maybe this is impossible...

    But once I have the applications.menu displayed, I can select the new Grimm icon (looks like a "More.." icon), and it then displays the Grimm.menu. This is how it's working now.

    Since I can do that on screen by just tapping it, it's seems logical that their should be an equivalent command that would display the grimm.menu. No?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Matan | # 90 | 2010-03-28, 19:45 | Report

    So what you want is to open a specific folder or subfolder in the launcher. Currently there is no support for this in modified-hildon-desktop.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 9 of 16 | Prev |   7     8   9   10     11   | Next | Last
vBulletin® Version 3.8.8
Normal Logout