![]() |
2009-06-27
, 21:53
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#2
|
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:
What am I doing wrong??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")
Any help will be highly appreciated!
Thanks,
L.
The Following 2 Users Say Thank You to qwerty12 For This Useful Post: | ||
![]() |
2009-06-27
, 22:07
|
Posts: 146 |
Thanked: 15 times |
Joined on Oct 2008
|
#3
|
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
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:
Any help will be highly appreciated!
Thanks,
L.
Last edited by luis; 2009-06-28 at 01:36.