View Single Post
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#2
Osso context refers to registering the app from DBUS, I don't know how it works for python but for transmission, I did things like:

/* exit the gtk main loop & osso_deinitalize*/
osso_context_t* context = NULL;
context = osso_initialize ("com.transmissionbt.Transmission", VERSION, FALSE, NULL);
osso_deinitialize(context);
(I had previously initialized it with:
osso_initialize ("com.transmissionbt.Transmission", VERSION, FALSE, NULL);
)

In python, it's something like:
import osso
osso.Context('com.whatever.whatever','<version>', False)

(Last param is always false - true is depreciated)

Sorry if this has confused you even more, I'm only familiar with C and I can't even code in C.
 

The Following User Says Thank You to qwerty12 For This Useful Post: