[maemo-developers] Is it possible to make a "well-behaved" pyGame app with maemo-python ?

From: Fred Pacquier fredp at dial.oleane.com
Date: Fri Nov 30 23:34:09 EET 2007
Eero Tamminen a écrit :
> So you've now verified that Exec part works, whether it's in
> .desktop or .service file.  What about the service name,
> Does the service name in .desktop match the .service file?
> I don't really know D-BUS, but when looking at the maemoblocks
> stuff on the device:
> /usr/share/applications/hildon/maemoblocks.desktop:
> X-Osso-Service=br.org.indt.maemoblocks.startup
> /usr/share/dbus-1/services/br.org.maemoblocks.startup.service:
I hope there's a typos in that filename (missing.indt) or I don't 
understand anything anymore :-)
> [D-BUS Service]
> Name=br.org.indt.maemoblocks.startup
> Exec=/usr/bin/maemoblocks_startup /usr/share/maemoblocks/maemoblocks.conf
> Whereas with stuff having com.nokia. prefix:
> /usr/share/applications/hildon/osso_help.desktop:
> X-Osso-Service=osso_help
> /usr/share/dbus-1/services/com.nokia.osso_help.service:
> [D-BUS Service]
> Name=com.nokia.osso_help
> Exec=/usr/bin/osso_help
> Doesn't seem to require the service pathname.

I think I have tried all possible combinations of with, without (except 
maybe the right one).
There are no two examples anywhere using the same syntax. Consider the 
Python Howto on maemo.org :

The recommended .desktop file has :

While the .service file is named hello_pymaemo.service (not 
com.nokia.hello_pymaemo.service), although it contains :
[D-BUS Service]

How consistent is that ? Where is the logic ?

A single, correct, working example in the right place would save 
man-months of hair-pulling.

>  > This is all very frustrating. I think it's bad for the app portfolio
>  > of the tablet, and its users in general, when amateur programmers like
>  > me have to spend hours after their program is finished, just to
>  > understand how to put its icon in a menu and actually get it launched
>  > from there...
>  > all because of an arcane and somewhat under-documented packaging
>  > system that's only really grokable if you have a good experience
>  > of Linux and Gnome beforehand.
> Could you file a bug about that to Desktop and put me on CC:
>    When TaskNavigator, or D-BUS or maemo-launcher fails to launch
>    an application, or TN doesn't show an icon for the application,
>    there's no information to the user why that happened.
> There are couple of things that could be done:
> - Better examples (python is not yet fully supported)
>    and documentation
> - Debugging facilities

Okay. Just to be nice :-)

More information about the maemo-developers mailing list