fix: kate plugin and krunner compilation
This commit is contained in:
parent
95cf201f4c
commit
2267c57b54
|
|
@ -669,7 +669,7 @@ void OllieKateView::renameSession()
|
||||||
if (!ok || newName.trimmed().isEmpty()) return;
|
if (!ok || newName.trimmed().isEmpty()) return;
|
||||||
newName = newName.trimmed();
|
newName = newName.trimmed();
|
||||||
|
|
||||||
write9p(agentPath() + "/ctl", ("rn " + newName).toUtf8());
|
write9p("session/" + m_sessionId + "/ctl", ("rn " + newName).toUtf8());
|
||||||
{
|
{
|
||||||
m_sessionId = newName;
|
m_sessionId = newName;
|
||||||
QString stateVal = QString::fromUtf8(run9p({"read", agentPath() + "/state"})).trimmed();
|
QString stateVal = QString::fromUtf8(run9p({"read", agentPath() + "/state"})).trimmed();
|
||||||
|
|
|
||||||
|
|
@ -74,10 +74,7 @@ QStringList OllieRunner::listSessions()
|
||||||
|
|
||||||
void OllieRunner::killSession(const QString &id)
|
void OllieRunner::killSession(const QString &id)
|
||||||
{
|
{
|
||||||
// Find agent path
|
write9p("session/" + id + "/ctl", "kill");
|
||||||
QByteArray agentOut = run9p({"ls", "session/" + id + "/agent"});
|
|
||||||
QString agentId = QString::fromUtf8(agentOut).trimmed().split('\n').value(0, "0");
|
|
||||||
write9p("session/" + id + "/agent/" + agentId + "/ctl", "kill");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void OllieRunner::match(RunnerNS::RunnerContext &context)
|
void OllieRunner::match(RunnerNS::RunnerContext &context)
|
||||||
|
|
|
||||||
Reference in New Issue