const Gio = imports.gi.Gio; const GLib = imports.gi.GLib; // regenerate with // dbus-send --system --print-reply --dest=org.pinenote.ebc /ebc org.freedesktop.DBus.Introspectable.Introspect // make sure to fix the tag and remove the "name" const PinenoteDbusInterface = ` ` const PinenoteDbusProxy = Gio.DBusProxy.makeProxyWrapper(PinenoteDbusInterface); var PnProxy = new PinenoteDbusProxy( Gio.DBus.system, "org.pinenote.ebc", "/ebc", ); // Note the *Sync naming scheme for synchronous calls PnProxy.TriggerGlobalRefreshSync();