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:
parent
8b4afa0ee5
commit
982e409319
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue