add 6th arg (remote) to all CreateSession D-Bus calls

This commit is contained in:
Levi Neely 2026-07-24 11:58:09 +02:00
parent d223911191
commit 62663aff4e
6 changed files with 7 additions and 7 deletions

View File

@ -8,7 +8,7 @@ TARGET="$(cd "$TARGET" 2>/dev/null && pwd)" || TARGET="$PWD"
RESULT=$(dbus-send --session --dest=org.ollie.SessionManager --type=method_call --print-reply \
/org/ollie/SessionManager org.ollie.SessionManager.CreateSession \
string:"$TARGET" string:"" string:"" string:"default" string:"" 2>&1)
string:"$TARGET" string:"" string:"" string:"default" string:"" string:"" 2>&1)
SESSION_ID=$(echo "$RESULT" | grep 'string "' | head -1 | sed 's/.*string "\(.*\)"/\1/')

View File

@ -581,7 +581,7 @@ void OllieKateView::newSession()
QString backend = m_plugin->defaultBackend();
QString model = m_plugin->defaultModel();
QDBusReply<QString> reply = m_iface->call("CreateSession", cwd, backend, model, "default", QString());
QDBusReply<QString> reply = m_iface->call("CreateSession", cwd, backend, model, "default", QString(), QString());
if (reply.isValid()) {
m_sessionId = reply.value();
m_rawChat.clear();

View File

@ -271,7 +271,7 @@ QString OllieDBusClient::createSession(const QString &cwd, const QString &backen
{
QString dir = cwd.isEmpty() ? QDir::homePath() : cwd;
auto *watcher = new QDBusPendingCallWatcher(
m_iface->asyncCall("CreateSession", dir, backend, model, QString("default"), QString()),
m_iface->asyncCall("CreateSession", dir, backend, model, QString("default"), QString(), QString()),
this);
connect(watcher, &QDBusPendingCallWatcher::finished, this, [this](QDBusPendingCallWatcher *w) {
QDBusPendingReply<QString> reply = *w;

View File

@ -23,7 +23,7 @@ echo ""
echo "=== CreateSession ==="
RESULT=$(dbus-send --session --dest=$SERVICE --type=method_call --print-reply \
$PATH_OBJ $IFACE.CreateSession \
string:"$HOME" string:"" string:"" string:"default" string:"")
string:"$HOME" string:"" string:"" string:"default" string:"" string:"")
echo "$RESULT"
SESSION_ID=$(echo "$RESULT" | grep 'string "' | head -1 | sed 's/.*string "//;s/"//')
echo "Session ID: $SESSION_ID"

View File

@ -9,12 +9,12 @@ IFACE="org.ollie.SessionManager"
echo "=== Create session A ==="
A=$(dbus-send --session --dest=$SERVICE --type=method_call --print-reply \
$OBJ $IFACE.CreateSession string:"$HOME" string:"" string:"" string:"default" string:"" | grep 'string "' | head -1 | sed 's/.*string "//;s/"//')
$OBJ $IFACE.CreateSession string:"$HOME" string:"" string:"" string:"default" string:"" string:"" | grep 'string "' | head -1 | sed 's/.*string "//;s/"//')
echo "A: $A"
echo "=== Create session B ==="
B=$(dbus-send --session --dest=$SERVICE --type=method_call --print-reply \
$OBJ $IFACE.CreateSession string:"$HOME" string:"" string:"" string:"default" string:"" | grep 'string "' | head -1 | sed 's/.*string "//;s/"//')
$OBJ $IFACE.CreateSession string:"$HOME" string:"" string:"" string:"default" string:"" string:"" | grep 'string "' | head -1 | sed 's/.*string "//;s/"//')
echo "B: $B"
echo ""

View File

@ -137,7 +137,7 @@ void OllieTray::onStateChanged(const QString &session_id, const QString &new_sta
void OllieTray::newSession()
{
QString cwd = QDir::homePath();
QDBusReply<QString> reply = m_iface->call("CreateSession", cwd, QString(), QString(), "default", QString());
QDBusReply<QString> reply = m_iface->call("CreateSession", cwd, QString(), QString(), "default", QString(), QString());
if (reply.isValid()) {
qDebug() << "Created session:" << reply.value();
} else {