Hi,

ext Fred Pacquier wrote:
> Thomas D. Waelti wrote :
>>> However, I have been unable to adapt the mClock example for the
>>> service file successfully. As soon as I reference the X-Osso-
>>> Service value in the desktop file, I get a lengthy "Loading..."
>>> banner and nothing else, even though I call osso.Context() early in
>>> my code. I must be missing something still...
>> Does the service really load your app?
>> Try to launch the application manually from xterm using the same
>> command that you wrote into the service file.
>> Does it come up then?
> 
> Yes, it's exactly the same line as in the .desktop file, and it does 
> load the app by itself.

The full chain is something like this:
[TaskNavigator] --TN .desktop--> [D-BUS] --D-BUS .service--> Exec app

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:
[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.


 > 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


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

Reply via email to