Aha, thanks! Sync was what I was after. It's taking a while though, so
I will restructure my code to use the Remote methods.
On 4 October 2012 16:48, Jasper St. Pierre wrote:
> Use "Sync" instead of "Remote". Note that if the DBus call takes a
> long time, this will freeze the Shell, so consider
Use "Sync" instead of "Remote". Note that if the DBus call takes a
long time, this will freeze the Shell, so consider using Remote by
restructuring your code:
dbusProxy.Remote(/* arguments ... */, function (result) {
// Continue your code here, rather than below the DBus call.
});
Hi all,
I'm taking first steps learning how to use DBus in a gnome shell extension.
I've hit a stumbling block - how do I get the result of a remote
method immediately?
Something like:
let value = dbusProxy.Remote(/* arguments ... */,
function (result) { how to return it });
In the