Update dragonrelaybackend.cpp
This commit is contained in:
parent
ef91b5385d
commit
8cc9d2dc4d
1 changed files with 15 additions and 8 deletions
|
|
@ -117,6 +117,11 @@ void DragonRelayBackend::streamHost(const QString &ip, const QString &app, int d
|
||||||
ip,
|
ip,
|
||||||
app
|
app
|
||||||
};
|
};
|
||||||
|
if (displayIndex > 0) {
|
||||||
|
// --display <N>: moonlight-qt CLI display selection flag (0 = primary)
|
||||||
|
// Verify with: moonlight --help
|
||||||
|
args << QStringLiteral("--display") << QString::number(displayIndex);
|
||||||
|
}
|
||||||
QProcess::startDetached(QStringLiteral("moonlight"), args);
|
QProcess::startDetached(QStringLiteral("moonlight"), args);
|
||||||
#elif defined(Q_OS_MACOS)
|
#elif defined(Q_OS_MACOS)
|
||||||
QStringList args{
|
QStringList args{
|
||||||
|
|
@ -124,6 +129,11 @@ void DragonRelayBackend::streamHost(const QString &ip, const QString &app, int d
|
||||||
ip,
|
ip,
|
||||||
app
|
app
|
||||||
};
|
};
|
||||||
|
if (displayIndex > 0) {
|
||||||
|
// --display <N>: moonlight-qt CLI display selection flag (0 = primary)
|
||||||
|
// Verify with: moonlight --help
|
||||||
|
args << QStringLiteral("--display") << QString::number(displayIndex);
|
||||||
|
}
|
||||||
QProcess::startDetached(QStringLiteral("moonlight"), args);
|
QProcess::startDetached(QStringLiteral("moonlight"), args);
|
||||||
#else
|
#else
|
||||||
QStringList args{
|
QStringList args{
|
||||||
|
|
@ -131,16 +141,13 @@ void DragonRelayBackend::streamHost(const QString &ip, const QString &app, int d
|
||||||
ip,
|
ip,
|
||||||
app
|
app
|
||||||
};
|
};
|
||||||
|
if (displayIndex > 0) {
|
||||||
|
// --display <N>: moonlight-qt CLI display selection flag (0 = primary)
|
||||||
|
// Verify with: moonlight --help
|
||||||
|
args << QStringLiteral("--display") << QString::number(displayIndex);
|
||||||
|
}
|
||||||
QProcess::startDetached(QStringLiteral("moonlight"), args);
|
QProcess::startDetached(QStringLiteral("moonlight"), args);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// TODO: Pass displayIndex to Moonlight stream command via the --display or
|
|
||||||
// --monitor flag. moonlight-qt uses NvHTTP::launchApp() with a "display"
|
|
||||||
// parameter. See app/streaming/session.cpp launchSession() for where
|
|
||||||
// display selection hooks should be added.
|
|
||||||
if (displayIndex > 0) {
|
|
||||||
qDebug() << " display index:" << displayIndex << "(Moonlight --display wiring pending)";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ── displaysForHost ───────────────────────────────────────────────────────────
|
// ── displaysForHost ───────────────────────────────────────────────────────────
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue