[maemo-developers] Banner shows "...Loading" for an usual long time when starts an application that already running

From: Eero Tamminen eero.tamminen at nokia.com
Date: Fri Mar 16 08:42:23 EET 2007

ext Wei Xiao wrote:
> I am developing a Maemo UI application which can be launched from the 
> menu entry. I noticed if we launch the application again when it’s 
> already running, Maemo would still try to initiate it and a banner 
> “…Loading” would appear for about 20 secs, although at the end, only one 
> instance of the application is running. Even if I check the existence of 
> the PID file and make the application return immediately at the start of 
> the 2^nd launch, the banner would still show up for the same amount of 
> time. Does anybody know if there is a way to avoid it?

I would assume that there's some problem with your Desktop entry or
that the class you give in your .desktop file doesn't match the WMClass
of what your application sets (by default it's in Gtk app the name of
your binary). You can check what's your application's WMClass by running
"xprop" and clicking your application window:
	xprop |grep CLASS
(With Sbox you can run xprop from your desktop, just give it Xephyr
display address)

If the classes don't match, Task Navigator doesn't have any way to
associate the application (window) with it's menu entry.

	- Eero

More information about the maemo-developers mailing list