Reply
Thread Tools
Posts: 146 | Thanked: 15 times | Joined on Oct 2008
#1
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.

Last edited by luis; 2009-06-28 at 01:36.
 
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:
Posts: 146 | Thanked: 15 times | Joined on Oct 2008
#3
Originally Posted by qwerty12 View Post
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
Thanks a lot for your quick answer! Yes, my problem was that I put "ave" instead of "org.maemo.ave" in the Context. Certainly the programs I saw were in com.nokia instead of org.maemo or something else. That happens when you do things that you don't understand...

Thanks a lot again!

Cheers,
L.
 
Reply


 
Forum Jump


All times are GMT. The time now is 17:56.