View Single Post
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#2
Originally Posted by luis View Post
Hi,
I made a pygtk app and wanted to integrate it to the N800 menu system. I read several pages, and what I did works (.desktop and .service files)... but the app dies after a minute or so. I read more, and then knew that I have to add osso.Context and so on in my app. I did it, but it still dies.

These are the lines I added to my program, called ave.py:

Code:
import osso
[...]
  ctx = osso.Context("ave", "1.0", False)
  osso_rpc = osso.Rpc(ctx)
  osso_rpc.rpc_run("org.maemo.ave","/org/maemo/ave","org.maemo.ave","do_something")
What am I doing wrong??

Any help will be highly appreciated!
Thanks,
L.
You don't need the RPC stuff if all you wish to do is to register your program with libosso.

"ave" == "com.nokia.ave" - does your desktop file and service say that? That can cause confusion so use something like:

osso.Context("com.luis.ave", "1.0", False)

And make sure your service and desktop files say com.luis.ave.

BR
 

The Following 2 Users Say Thank You to qwerty12 For This Useful Post: