![]() |
2011-04-01
, 18:46
|
Posts: 101 |
Thanked: 50 times |
Joined on Nov 2010
@ Liverpool, England
|
#31
|
![]() |
2011-04-02
, 07:02
|
Posts: 101 |
Thanked: 50 times |
Joined on Nov 2010
@ Liverpool, England
|
#32
|
![]() |
2012-01-18
, 20:13
|
|
Posts: 165 |
Thanked: 18 times |
Joined on Jun 2010
|
#33
|
![]() |
2012-06-07
, 16:42
|
Posts: 78 |
Thanked: 24 times |
Joined on Feb 2012
@ Moscow
|
#34
|
![]() |
2012-07-29
, 15:23
|
Posts: 20 |
Thanked: 11 times |
Joined on Aug 2010
|
#35
|
![]() |
2012-08-10
, 02:07
|
Posts: 466 |
Thanked: 661 times |
Joined on Jan 2009
|
#36
|
Thank you very much for this.
dbus-send /com/nokia/hildon_desktop com.nokia.hildon_desktop.exit_app_view
^^ This does exactly what I want.
Unfortunately, I was hoping integrating it into systemui.xml would be more obvious.
I tried adding the following (modified from the xterm top example), but it does nothing, so I obviously don't understand how the calls are made:
Anyone know how I can integrate that call into systemui.xml (properly, so it actually works)?Code:<menuitem priority="800" name="Dashboard"> <callback service="com.nokia.hildon_desktop.exit_app_view" path="/com/nokia/hildon_desktop/exit_app_view" interface="com.nokia.hildon_desktop.exit_app_view" method="exit_app_view" bus="session" autostart="true"> </callback> </menuitem>
I thought about copying the top in xterm example and changing top to the command line from the wiki, but I'd like to understand the correct way to do this (and launching an xterm for this seems like massive overkill).
A pointer to a doc that explains how to navigate the dbus hierarchy would be appreciated.
Edit: Is there a log file I can parse for errors? Nothing shows up in dmesg.
<menuitem priority="100" name="Dashboard"> <callback path="/com/nokia/hildon_desktop" interface="com.nokia.hildon_desktop" signal="exit_app_view" bus="session" autostart="true"> </callback> </menuitem>
![]() |
2012-08-11
, 13:58
|
|
Posts: 283 |
Thanked: 276 times |
Joined on Aug 2011
@ uk or @Pai,Mae Hong Son, Thailand
|
#37
|
<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>
![]() |
2012-08-11
, 17:30
|
Posts: 466 |
Thanked: 661 times |
Joined on Jan 2009
|
#38
|
Can anyone tell me why this doesn't work please?
Pleasy 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>
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?
<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>
[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