View Single Post
Posts: 466 | Thanked: 661 times | Joined on Jan 2009
#36
Originally Posted by glabifrons View Post
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:

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>
Anyone know how I can integrate that call into systemui.xml (properly, so it actually works)?

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.
Not sure if you figured this out or not, but i wanted to do the same. I got it to work, however it only works when an application is open and is also in landscape mode. However, it is still useful if using an app in fullscreen mode such as opera, sygic maps, nokia maps, etc.

The key is that the the message is a signal and not a method.

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

Last edited by jackburton; 2012-08-10 at 02:16.