Take the 2-minute tour ×

I use D-Feet D-Bus debugger to investigate some interfaces. One of them requires a variant type to be send as an argument (which means that you can send anything).

But I have trouble sending the argument as variant - normal python syntax would be __import__('dbus').Boolean(0) for a boolean, but that won't work (Error.InvalidArguement).

Using variant:boolean:0 doesn't work either.

How to send a arguement as variant via D-Feet?

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

I tried __import__('dbus').Boolean(0, variant_level=1) and it seems that it worked.

share|improve this answer
Seems to work! Thanks. –  powerbar Feb 22 '13 at 11:12
add comment

In d-feet 0.3.9 at least, GLib.Variant('b', False) works.

share|improve this answer
I'd like ti give you +200 for that. Using d-feet 0.3.3 and it works well. –  exilit yesterday
add comment

Your Answer


