Active Topics

 


Reply
Thread Tools
Posts: 101 | Thanked: 50 times | Joined on Nov 2010 @ Liverpool, England
#31
it would be if i can find a way of killing the xterm it runs in
 
Posts: 101 | Thanked: 50 times | Joined on Nov 2010 @ Liverpool, England
#32
@try-alls

if you're intested i got the killall working how i wanted now i.e closing terminal just change

<argument type="string">killall rtcom-messaging-ui browser exit</argument>

to

<argument type="string">killall rtcom-messaging-ui browser osso-xterm</argument>

then it works
 
moudy91's Avatar
Posts: 165 | Thanked: 18 times | Joined on Jun 2010
#33
dear all

i want a command in qbw that it will open the power button menu, can this be done ???
 
Posts: 78 | Thanked: 24 times | Joined on Feb 2012 @ Moscow
#34
I want to add Midnight Commander entry launched as root without second xterm window. Is it possible?

Okay. .desktop file changed to Exec=osso-xterm 'sudo mc'
and systemui.xml changed to
<menuitem priority="5" name="MC">
<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">mc</argument>
</callback>
</menuitem>
Working like a charm.

Last edited by OMOIKANE; 2012-06-13 at 16:55.
 
Posts: 20 | Thanked: 11 times | Joined on Aug 2010
#35
somebody knows why an app don't start if I add NNoDysplay=true" in the .desktop file of the application?
i want hide the app in the menù and call it with systemui (power button)
Someone knows if is t possible? i try many times but i'm not able to do it
 
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.
 
macey's Avatar
Posts: 283 | Thanked: 276 times | Joined on Aug 2011 @ uk or @Pai,Mae Hong Son, Thailand
#37
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?

Last edited by macey; 2012-08-11 at 16:07. Reason: Partial fix.
 
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
 
Reply


 
Forum Jump


All times are GMT. The time now is 21:29.