On 06/10 08:38, Uli Schlachter wrote:
On 05.10.2014 17:17, Gerome Fournier wrote:
Hi,
I've been using awesome-client with success to execute some lua code
through dbus, but I'm wondering how to obtain a reply from this code.
If I have a function like this un my rc.lua file:
dbus_test = function()
-- do something...
-- let's try to return a value
return test
end
when I call it through dbus, I dont get any response. The code is
executed, but the return statement is not handled properly, a dbus
reply is not generated (awesome-client is calling dbus-send
with the argument --print-reply):
$ echo dbus_test() | awesome-client
[...]
Try something like this:
$ echo 'return foo' | awesome-client
string foo
So in your case you'd want:
$ echo return dbus_test() | awesome-client
Cheers,
Uli
Oh my, that's what I was looking for.
Thanks a lot Uli!
--
Gerome Fournier
http://foutaise.org
--
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.