Launch a new application API

2010-06-28 Thread Pallavi Kandhare
Hello,
I want to launch a new application from my application. Is there any API to 
launch a new application.

Thanks.


  

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


RE: Bring an application to focus

2010-06-28 Thread Felipe Crochik
Right on the money. Thanks!

-Original Message-
From: surreal.w...@gmail.com [mailto:surreal.w...@gmail.com] On Behalf Of
Robin Burchell
Sent: Monday, June 28, 2010 7:02 PM
To: Felipe Crochik
Cc: maemo-developers
Subject: Re: Bring an application to focus

On Mon, Jun 28, 2010 at 11:54 PM, Felipe Crochik  wrote:
> Is there a way to make my application after receiving a dbus signal become
> active and visible? If the application is not running it starts
> automatically on the top and it is visible/focused, but if my application
is
> already running how can I make its main window become visible/focused when
> it is "behind some other application"? I tried setFocus() (qt) but it does
> not seem to make any difference.

>From memory, QWidget::activateWindow() and possibly QWidget::raise()
could be relevant.

> Thanks
>
> Felipe

HTH,

--
Robin Burchell
http://rburchell.com

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Bring an application to focus

2010-06-28 Thread Robin Burchell
On Mon, Jun 28, 2010 at 11:54 PM, Felipe Crochik  wrote:
> Is there a way to make my application after receiving a dbus signal become
> active and visible? If the application is not running it starts
> automatically on the top and it is visible/focused, but if my application is
> already running how can I make its main window become visible/focused when
> it is “behind some other application”? I tried setFocus() (qt) but it does
> not seem to make any difference.

From memory, QWidget::activateWindow() and possibly QWidget::raise()
could be relevant.

> Thanks
>
> Felipe

HTH,

--
Robin Burchell
http://rburchell.com
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Bring an application to focus

2010-06-28 Thread Felipe Crochik
Is there a way to make my application after receiving a dbus signal become
active and visible? If the application is not running it starts
automatically on the top and it is visible/focused, but if my application is
already running how can I make its main window become visible/focused when
it is "behind some other application"? I tried setFocus() (qt) but it does
not seem to make any difference.

 

Thanks

Felipe

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


How to keep hildon-plugin-manager from loading plugins before the package is installed completely?

2010-06-28 Thread pHilipp Zabel
Hi,

I tried to find the cause for
https://bugs.maemo.org/show_bug.cgi?id=10798 (installation of
status-area-applet-tor crashes hildon-status-menu), so I ran
hildon-status-menu from the terminal before installing the Tor Status
Area Applet from h-a-m:

# /usr/sbin/dsmetool -k /usr/bin/hildon-status-menu
# DEBUG_OUTPUT=1 /usr/bin/hildon-status-menu
[...]
atus-menu[27821]: GLIB DEBUG default - plugin-added:
/usr/share/applications/hildon-status-menu/status-area-applet-tor.desktop
atus-menu[27821]: GLIB DEBUG default - load_plugin_idle. Try to load
plugin_id: status-area-applet-tor.desktop
atus-menu[27821]: GLIB ERROR ** default -
status-area-applet-tor.vala:118: Icon 'statusarea_tor_disabled' not
present in theme
aborting...

So during installation, the plugin is loaded but causes SIGABRT
because it can't find a theme icon that is part of the package:

# dpkg -L status-area-applet-tor | grep "\(disabled\|\.desktop\)"
/opt/maemo/usr/share/icons/hicolor/48x48/hildon/statusarea_tor_disabled.png
/usr/share/applications/hildon-status-menu/status-area-applet-tor.desktop
/usr/share/icons/hicolor/48x48/hildon/statusarea_tor_disabled.png

My assessment of the situation is that hildon-status-menu loads the
plugin as soon as status-area-applet-tor.desktop is unpacked. It then
races against the unpacking process and wins. It tries to load the
icon before the maemo-optified link
/usr/share/icons/hicolor/48x48/hildon/statusarea_tor_disabled.png is
created.
Is this what happens? What should I do about it - I guess I can't stop
h-s-m from prematurely loading the plugin?

best regards
Philipp
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


RE: capturing key presses on N770

2010-06-28 Thread Vinod Nanjaiah
Frantisek, thanks a lot for your inputs.
This is the use case:
   I want to run a video streaming client in the foreground.
   In the background I want to run a process that captures the key presses 
and invokes a
   script to do something more.

I haven't yet had a peek at the evkey.c and bootmenu.sh - hope this is it.

Thank you,
Vinod


From: Frantisek Dufka [duf...@seznam.cz]
Sent: Monday, June 28, 2010 9:07 PM
To: Vinod Nanjaiah
Cc: maemo-develop...@maemo.orgg
Subject: Re: capturing key presses on N770

Vinod Nanjaiah wrote:
> Hi,
> I am trying to capture key presses of the Hard keys (Up, Down, Left,
> Right, Home, etc) on Nokia N770.
> Is it possible to do so using a simple c program or shell script?

Not sure what is the scenario you want to use it for. For low level
access you can use kernel input subsystem directly

see e.g. evkey.c [1] and its usage in bootmenu.sh [2]. Just beware that
different devices have different device names and key events still go to
the rest of the system.

For playing nice with the system using powerlaunch [3] is indeed better.
I am not aware of 770 version (the author [4] has/had N800) but the
source is here [4]. Maybe it could build fine at least in OS2007 hacker
edition.

Frantisek

1.
https://garage.maemo.org/plugins/scmsvn/viewcvs.php/tags/bootmenu_0_1/?root=bootmenu
2.
https://garage.maemo.org/plugins/scmsvn/viewcvs.php/trunk/bootmenu/files/?root=bootmenu

3. http://powerlaunch.garage.maemo.org/

4. http://austinche.name/maemo/index.html
5.
http://repository.maemo.org/extras-devel/pool/diablo/free/source/p/powerlaunch/

http://www.mindtree.com/email/disclaimer.html
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


QLineEdit and casing

2010-06-28 Thread Mats Rauhala
I have trouble with uppercase letters with QLineEdit. I'm using
QLineEdit as an input method for adding items to a list/set. The user
write an item and presses return which causes the text to be handled and
the QLineEdit cleared. But if the user wants to add another item, the
text is no longer title cased. If the QLineEdit loses focus and regains
it, the casing is nulled and the first line is again title cased. I'd
like the texts to be always or never title cased for consistency.

As far as I understand the title casing is caused by Maemo input methods,
but I wasn't able to figure out the keywords for figuring out how to fix
this.

-- 
Mats Rauhala
sip:mas...@ekiga.net


pgpESpavMhkN5.pgp
Description: PGP signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Desktop icons

2010-06-28 Thread Mats Rauhala
Yes they show up fine after restart. Thank you for pointing me to the
right direction.

-- 
Mats Rauhala
sip:mas...@ekiga.net


pgpq07PNtHDNQ.pgp
Description: PGP signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: capturing key presses on N770

2010-06-28 Thread Frantisek Dufka

Vinod Nanjaiah wrote:

Hi,
I am trying to capture key presses of the Hard keys (Up, Down, Left, 
Right, Home, etc) on Nokia N770.

Is it possible to do so using a simple c program or shell script?


Not sure what is the scenario you want to use it for. For low level 
access you can use kernel input subsystem directly


see e.g. evkey.c [1] and its usage in bootmenu.sh [2]. Just beware that 
different devices have different device names and key events still go to 
the rest of the system.


For playing nice with the system using powerlaunch [3] is indeed better. 
I am not aware of 770 version (the author [4] has/had N800) but the 
source is here [4]. Maybe it could build fine at least in OS2007 hacker 
edition.


Frantisek

1. 
https://garage.maemo.org/plugins/scmsvn/viewcvs.php/tags/bootmenu_0_1/?root=bootmenu
2. 
https://garage.maemo.org/plugins/scmsvn/viewcvs.php/trunk/bootmenu/files/?root=bootmenu


3. http://powerlaunch.garage.maemo.org/

4. http://austinche.name/maemo/index.html
5. 
http://repository.maemo.org/extras-devel/pool/diablo/free/source/p/powerlaunch/

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


RE: capturing key presses on N770

2010-06-28 Thread Vinod Nanjaiah
Hi,
I came across Powerlaunch which can capture and map a hard key to any user 
defined action.
But, can Powerlaunch work while running in the background or does it need to 
run in the foreground?
BTW, I was not able to find a .deb package for powerlaunch - Any links from 
where this can be downloaded?

Frank, thanks for your input.

Thank you,
Vinod

From: Frank Banul [mailto:frank.ba...@gmail.com]
Sent: Friday, June 25, 2010 7:54 PM
To: Vinod Nanjaiah
Cc: maemo-developers@maemo.org
Subject: Re: capturing key presses on N770

Hi,

With C and GTK it's certainly possible, I do so in TabletBridge. 
https://garage.maemo.org/projects/tabletsb/

Frank
On Fri, Jun 25, 2010 at 7:21 AM, Vinod Nanjaiah 
mailto:vinod_nanja...@mindtree.com>> wrote:
Hi,
I am trying to capture key presses of the Hard keys (Up, Down, Left, Right, 
Home, etc) on Nokia N770.
Is it possible to do so using a simple c program or shell script?
Any pointers are welcome.

Thank you,
Vinod


http://www.mindtree.com/email/disclaimer.html
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Desktop icons

2010-06-28 Thread daniel wilms

Hi,

On 28/06/10 00:35, ext Mats Rauhala wrote:

I installed the cross-compiled package to my device and whilst the icon
shows when removing the application with package manager, the icon does
not show in the menu.

   


Basically the sources for the icons are different. The application 
manager shows the icon it finds in the control file of the debian 
folder, while the icon in the task launcher is based on the one in the 
icons folder. But can you see the blue square as the default icon in the 
task launcher? Then your problem is probably related to a bug [1] in the 
system. Does your icon shows up after a restart?


[1] https://bugs.maemo.org/show_bug.cgi?id=6931

Daniel


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers