View Single Post
Posts: 466 | Thanked: 661 times | Joined on Jan 2009
#38
Originally Posted by macey View Post
Can anyone tell me why this doesn't work please?

Code:
<menuitem priority="3" name="Top">                             
   <callback service="com.nokia.HildonDesktop.AppMgr"
   path="/com/nokia/HildonDesktop/AppMgr"                                       
   interface="com.nokia.HildonDesktop.AppMgr"     
   method="LaunchApplication" bus="session"                                  
   autostart="true">                                           
   <argument type="string">top</argument>             
   </callback>                         
 </menuitem>
Pleasy please...

Doesn't do anything (menu item is there).
Other method (bringing up two x-terms ) works ok though..

Maybe I need to create a top.desktop item in order to use this method?

Ok, created top.desktop :-

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Terminal=true
Name=Top
Exec=osso-xterm 'sudo top'
#Icon=softrestart
X-HildonDesk-ShowInToolbar=false
X-Osso-Type=application/x-executable

This works ok, I just wanted a solution that didn't create an "Item" in the "Desktop Application" list (or whatever the proper name is).
Is this possible?
I am not using plain top, but using HTOP

Code:
<menuitem priority="200" name="htop">
  <po>htop</po>
  <icon>htop</icon>
  <callback service="com.nokia.HildonDesktop.AppMgr"
        path="/com/nokia/HildonDesktop/AppMgr"
        interface="com.nokia.HildonDesktop.AppMgr"
        method="LaunchApplication" bus="session"
        autostart="true">
        <argument type="string">htop</argument>
  </callback>
</menuitem>
The .desktop file for htop is:
Code:
[Desktop Entry]
Version=1.0
Name=Htop
Type=Application
Comment=Show System Processes
Terminal=true
Exec=htop --xterm
Icon=htop
Categories=ConsoleOnly;System;
GenericName=Process Viewer