Re: How to de-register a dbus service



2012/8/30 alok barsode <alokbarsode gmail com>:
> hi,
>
> I am using GDBus in my gnome extension. I am exporting a dbus service using
> :
>
> const Agent = new Lang.Class({
>     Name: 'Agent',
>     _init: function() {
>         this._dbusImpl = Gio.DBusExportedObject.wrapJSObject(AgentInterface,
> this);
> this._dbusImpl.export(Gio.DBus.system, AGENT_PATH);
>         this.source = null;
>     },
> });
>
> in extension's enable() function I call
> agent = new Agent() which exports the dbus service.
>
> I want to de-register this object in my extension's disable function. I
> tried deleting the object, but that did not help.

You export the object with .export(), you unexport it with .unexport()

Giovanni


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]