diff --git a/scripting/scripting.cpp b/scripting/scripting.cpp index b4fe2c4fe0..6c6e258656 100644 --- a/scripting/scripting.cpp +++ b/scripting/scripting.cpp @@ -182,7 +182,12 @@ QScriptValue kwinCallDBus(QScriptContext *context, QScriptEngine *engine) QDBusMessage msg = QDBusMessage::createMethodCall(service, path, interface, method); QVariantList arguments; for (int i=4; iargument(i).toVariant(); + if (context->argument(i).isArray()) { + QStringList stringArray = engine->fromScriptValue(context->argument(i)); + arguments << qVariantFromValue(stringArray); + } else { + arguments << context->argument(i).toVariant(); + } } if (!arguments.isEmpty()) { msg.setArguments(arguments);