fix: kate plugin and krunner compilation

This commit is contained in:
Levi Neely 2026-08-01 15:07:50 +02:00
parent 95cf201f4c
commit 2267c57b54
2 changed files with 2 additions and 5 deletions

View File

@ -669,7 +669,7 @@ void OllieKateView::renameSession()
if (!ok || newName.trimmed().isEmpty()) return;
newName = newName.trimmed();
write9p(agentPath() + "/ctl", ("rn " + newName).toUtf8());
write9p("session/" + m_sessionId + "/ctl", ("rn " + newName).toUtf8());
{
m_sessionId = newName;
QString stateVal = QString::fromUtf8(run9p({"read", agentPath() + "/state"})).trimmed();

View File

@ -74,10 +74,7 @@ QStringList OllieRunner::listSessions()
void OllieRunner::killSession(const QString &id)
{
// Find agent path
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");
write9p("session/" + id + "/ctl", "kill");
}
void OllieRunner::match(RunnerNS::RunnerContext &context)