On Wednesday, 10 March 2021 03:43:44 PST Phương Lê Hoàng wrote: > I tried to read the source code of callDBus and failed to understand > whether it supports a{sv} or not, since I'm not familiar with Qt and C++. > https://invent.kde.org/plasma/kwin/-/blob/master/src/scripting/scripting.cpp > #L253
This should have worked. Searching the source code shows that for (const QJSValue &jsArgument : qAsConst(jsArguments)) { dbusArguments << jsArgument.toVariant(); } Should end up creating a QVariantMap and QtDBus should have understood them to create an a{sv}. Something is broken. You'll need to debug. -- Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org Software Architect - Intel DPG Cloud Engineering