scripting: Use a better path for scripts

Currently we create objects at the path /0 /1 and so on. This isn't very
well namespaced
This commit is contained in:
David Edmundson 2023-05-26 08:42:34 +01:00
parent 8b4afa0ee5
commit 982e409319

View file

@ -103,7 +103,7 @@ KWin::AbstractScript::AbstractScript(int id, QString scriptName, QString pluginN
}
new ScriptAdaptor(this);
QDBusConnection::sessionBus().registerObject(QLatin1Char('/') + QString::number(scriptId()), this, QDBusConnection::ExportAdaptors);
QDBusConnection::sessionBus().registerObject(QStringLiteral("/Scripting/Script") + QString::number(scriptId()), this, QDBusConnection::ExportAdaptors);
}
KWin::AbstractScript::~AbstractScript()