Reply
Thread Tools
Posts: 66 | Thanked: 9 times | Joined on Mar 2010 @ Netherlands
#81
@ 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
 
Posts: 1,224 | Thanked: 1,763 times | Joined on Jul 2007
#82
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.
__________________
My repository

"N900 community support for the MeeGo-Harmattan" Is the new "Mer is Fremantle for N810".

No more Nokia devices for me.
 

The Following User Says Thank You to Matan For This Useful 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:
Posts: 31 | Thanked: 12 times | Joined on Mar 2010 @ Florida
#84
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)

Last edited by uncleboarder; 2010-03-28 at 16:35.
 
Posts: 1,224 | Thanked: 1,763 times | Joined on Jul 2007
#85
I do not understand the question. There is only one menu (launcher) in each device, the the dbus command opens this launcher.
__________________
My repository

"N900 community support for the MeeGo-Harmattan" Is the new "Mer is Fremantle for N810".

No more Nokia devices for me.
 
Posts: 31 | Thanked: 12 times | Joined on Mar 2010 @ Florida
#86
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?
 
Posts: 31 | Thanked: 12 times | Joined on Mar 2010 @ Florida
#87
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
 
Posts: 1,224 | Thanked: 1,763 times | Joined on Jul 2007
#88
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.
__________________
My repository

"N900 community support for the MeeGo-Harmattan" Is the new "Mer is Fremantle for N810".

No more Nokia devices for me.
 
Posts: 31 | Thanked: 12 times | Joined on Mar 2010 @ Florida
#89
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?
 
Posts: 1,224 | Thanked: 1,763 times | Joined on Jul 2007
#90
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.
__________________
My repository

"N900 community support for the MeeGo-Harmattan" Is the new "Mer is Fremantle for N810".

No more Nokia devices for me.
 
Reply


 
Forum Jump


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