From 61af8cc6cca1d3e1c7ea692465a7d0d8a670ab7c Mon Sep 17 00:00:00 2001 From: mlopezsegura <90263997+mlopezsegura@users.noreply.github.com> Date: Mon, 23 Nov 2026 23:35:25 +0100 Subject: [PATCH] RemoteIdd: explain why it was turned off and keep retrying on reinstall When RDP-Tcp doesn't listen with the RemoteIdd provider (on Windows Home/Pro, the multi-session component doesn't let Remote Desktop load non-Microsoft protocol providers), startup still removes RemoteIdd from RDP-Tcp, but now: - saves the reason in %ProgramData%\OpenStreamMS\remoteidd-off.json, cleared when RemoteIdd works again and by uninstall.ps1; - logs a clear message: what happened, that seats use Windows' RDP display, and that RemoteIdd is tried again on every update or reinstall; - exposes remoteIddOffReason/remoteIddOffText in /api/rdpwrap/status, shown in the Multi-RDP window and as "turned off" in the guide (22 languages); - adds the reason to the diagnostics summary. Co-Authored-By: Claude Opus 5.5 --- Core/Helpers/DiagnosticsBundle.cs | 2 +- Core/wwwroot/app.js | 4 + Core/wwwroot/guide.js | 11 ++- Core/wwwroot/index.html | 1 + Core/wwwroot/locales/bg.json | 1 + Core/wwwroot/locales/cs.json | 1 + Core/wwwroot/locales/de.json | 1 + Core/wwwroot/locales/en.json | 1 + Core/wwwroot/locales/en_GB.json | 1 + Core/wwwroot/locales/en_US.json | 1 + Core/wwwroot/locales/es.json | 1 + Core/wwwroot/locales/fr.json | 1 + Core/wwwroot/locales/hu.json | 1 + Core/wwwroot/locales/it.json | 1 + Core/wwwroot/locales/ja.json | 1 + Core/wwwroot/locales/ko.json | 1 + Core/wwwroot/locales/pl.json | 1 + Core/wwwroot/locales/pt.json | 1 + Core/wwwroot/locales/pt_BR.json | 1 + Core/wwwroot/locales/ru.json | 1 + Core/wwwroot/locales/sv.json | 1 + Core/wwwroot/locales/tr.json | 1 + Core/wwwroot/locales/uk.json | 1 + Core/wwwroot/locales/vi.json | 1 + Core/wwwroot/locales/zh.json | 1 + Core/wwwroot/locales/zh_TW.json | 1 + Core/wwwroot/style.css | 3 + Native/RemoteIdd/Provider/uninstall.ps1 | 2 + Services/Localization/Locales/bg.json | 3 +- Services/Localization/Locales/cs.json | 3 +- Services/Localization/Locales/de.json | 3 +- Services/Localization/Locales/en.json | 3 +- Services/Localization/Locales/en_GB.json | 3 +- Services/Localization/Locales/en_US.json | 3 +- Services/Localization/Locales/es.json | 3 +- Services/Localization/Locales/fr.json | 3 +- Services/Localization/Locales/hu.json | 3 +- Services/Localization/Locales/it.json | 3 +- Services/Localization/Locales/ja.json | 3 +- Services/Localization/Locales/ko.json | 3 +- Services/Localization/Locales/pl.json | 3 +- Services/Localization/Locales/pt.json | 3 +- Services/Localization/Locales/pt_BR.json | 3 +- Services/Localization/Locales/ru.json | 3 +- Services/Localization/Locales/sv.json | 3 +- Services/Localization/Locales/tr.json | 3 +- Services/Localization/Locales/uk.json | 3 +- Services/Localization/Locales/vi.json | 3 +- Services/Localization/Locales/zh.json | 3 +- Services/Localization/Locales/zh_TW.json | 3 +- Services/Session/RdpWrapperManager.cs | 84 +++++++++++++++++-- tests/OpenStreamMS.Tests/RemoteIddOffTests.cs | 73 ++++++++++++++++ 52 files changed, 234 insertions(+), 34 deletions(-) create mode 100644 tests/OpenStreamMS.Tests/RemoteIddOffTests.cs diff --git a/Core/Helpers/DiagnosticsBundle.cs b/Core/Helpers/DiagnosticsBundle.cs index 57a2509..78518e9 100644 --- a/Core/Helpers/DiagnosticsBundle.cs +++ b/Core/Helpers/DiagnosticsBundle.cs @@ -359,7 +359,7 @@ private static string OpenStreamState(Sources src, StringBuilder summary) root["remoteIddPendingRestart"] = RdpWrapperManager.IsRemoteIddPendingRestart(); root["remoteIddUsable"] = RdpWrapperManager.IsRemoteIddUsable(); summary.AppendLine($"Multi-RDP: {(rdpStatus.Allowed ? $"sí ({rdpStatus.Source})" : rdpStatus.Pending ? "pendiente de cargar" : "no, una sola sesión")} (sesiones activas: {rdpStatus.ActiveSessions}, {rdpStatus.Edition}, termsrv {rdpStatus.TermsrvVersion})"); - summary.AppendLine($"RemoteIdd: {(RdpWrapperManager.IsRemoteIddUsable() ? "en uso" : RdpWrapperManager.IsRemoteIddActive() ? "instalado, pendiente de reinicio" : "no")}"); + summary.AppendLine($"RemoteIdd: {(RdpWrapperManager.IsRemoteIddUsable() ? "en uso" : RdpWrapperManager.IsRemoteIddActive() ? "instalado, pendiente de reinicio" : rdpStatus.RemoteIddOffReason is { } off ? $"quitado de RDP-Tcp al arrancar ({off}); se reintenta al reinstalar" : "no")}"); var drivers = new JsonObject(); foreach (var d in src.Drivers ?? [new ViGEmBusManager(), new HidHideManager()]) diff --git a/Core/wwwroot/app.js b/Core/wwwroot/app.js index fcbc15f..e3de823 100644 --- a/Core/wwwroot/app.js +++ b/Core/wwwroot/app.js @@ -1004,6 +1004,10 @@ function renderRdpStatus(st) { const note = document.getElementById('rdp-pending-note'); note.textContent = key === 'pending' ? t('rdp.pendingNote') : ''; note.classList.toggle('hidden', key !== 'pending'); + // RemoteIdd quitado al arrancar: el servicio manda el motivo ya traducido. + const ridd = document.getElementById('rdp-remoteidd-note'); + ridd.textContent = st.remoteIddOffText || ''; + ridd.classList.toggle('hidden', !st.remoteIddOffText); document.getElementById('rdp-source').textContent = t(`rdp.source.${st.source || 'none'}`); document.getElementById('rdp-edition').textContent = st.edition || '—'; diff --git a/Core/wwwroot/guide.js b/Core/wwwroot/guide.js index b5fd667..950dfbf 100644 --- a/Core/wwwroot/guide.js +++ b/Core/wwwroot/guide.js @@ -133,19 +133,22 @@ function guideDepsHtml() { const rdp = rdpLastStatus, vg = drivers.vigem.lastStatus, hh = drivers.hidhide.lastStatus; const state = st => !st ? 'checking' : st.busy ? 'working' : st.rebootRequired ? 'reboot' : st.installed ? 'ok' : 'missing'; - const ridd = !rdp ? 'checking' : rdp.remoteIdd ? 'ok' : 'optional'; + // 'off': instalado, pero el arranque lo quitó de RDP-Tcp porque no funcionaba (el motivo, en + // la ventana de varias sesiones). + const ridd = !rdp ? 'checking' : rdp.remoteIdd ? 'ok' : rdp.remoteIddOffReason ? 'off' : 'optional'; const rows = [ { name: t('rdp.pill'), what: t('guide.install.rdp'), need: t('guide.install.needSessions'), st: rdpDepState(rdp), open: 'closeGuide(); openRdpModal()' }, { name: 'ViGEmBus', what: t('guide.install.vigem'), need: t('guide.install.needPads'), st: state(vg), open: "closeGuide(); openDriverModal('vigem')" }, { name: 'HidHide', what: t('guide.install.hidhide'), need: t('guide.install.needPads'), st: state(hh), open: "closeGuide(); openDriverModal('hidhide')" }, - { name: 'RemoteIdd', what: t('guide.install.remoteidd'), need: t('guide.install.needSeats'), st: ridd }, + { name: 'RemoteIdd', what: t('guide.install.remoteidd'), need: t('guide.install.needSeats'), st: ridd, open: 'closeGuide(); openRdpModal()' }, ]; return rows.map((r, i) => { const mark = r.st === 'ok' || r.st === 'activates' ? '' : r.st === 'checking' || r.st === 'working' ? '' : r.st === 'optional' ? '' : '!'; - const label = r.st === 'optional' ? t('guide.install.optional') : t('ux.dep.' + r.st); - const btn = r.open && ['missing', 'broken', 'reboot', 'single'].includes(r.st) + const label = r.st === 'optional' ? t('guide.install.optional') + : r.st === 'off' ? t('guide.install.remoteiddOff') : t('ux.dep.' + r.st); + const btn = r.open && ['missing', 'broken', 'reboot', 'single', 'off'].includes(r.st) ? `` : ''; return `
  • ${mark} diff --git a/Core/wwwroot/index.html b/Core/wwwroot/index.html index 46e2a46..b5528df 100644 --- a/Core/wwwroot/index.html +++ b/Core/wwwroot/index.html @@ -1069,6 +1069,7 @@

    Varias sesiones a la vez

    +
    diff --git a/Core/wwwroot/locales/bg.json b/Core/wwwroot/locales/bg.json index 2457682..9104823 100644 --- a/Core/wwwroot/locales/bg.json +++ b/Core/wwwroot/locales/bg.json @@ -699,6 +699,7 @@ "guide.install.needPads": "Необходимо за геймпади", "guide.install.needSeats": "По избор, за работни места", "guide.install.optional": "по избор", + "guide.install.remoteiddOff": "изключен", "guide.start.nav": "Първи стъпки", "guide.start.title": "Всичко е готово!", "guide.start.lead": "Създайте каквото ви трябва. Можете да се върнете към ръководството по всяко време от бутона „?“ горе.", diff --git a/Core/wwwroot/locales/cs.json b/Core/wwwroot/locales/cs.json index e02c181..83899f2 100644 --- a/Core/wwwroot/locales/cs.json +++ b/Core/wwwroot/locales/cs.json @@ -699,6 +699,7 @@ "guide.install.needPads": "Nutné pro gamepady", "guide.install.needSeats": "Volitelné, pro pracovní místa", "guide.install.optional": "volitelné", + "guide.install.remoteiddOff": "vypnuto", "guide.start.nav": "První kroky", "guide.start.title": "Vše je připraveno!", "guide.start.lead": "Vytvořte, co potřebujete. K průvodci se můžete kdykoli vrátit tlačítkem „?“ nahoře.", diff --git a/Core/wwwroot/locales/de.json b/Core/wwwroot/locales/de.json index 2c9f75b..b71fd9d 100644 --- a/Core/wwwroot/locales/de.json +++ b/Core/wwwroot/locales/de.json @@ -699,6 +699,7 @@ "guide.install.needPads": "Erforderlich für Gamepads", "guide.install.needSeats": "Optional, für Arbeitsplätze", "guide.install.optional": "optional", + "guide.install.remoteiddOff": "deaktiviert", "guide.start.nav": "Erste Schritte", "guide.start.title": "Alles bereit!", "guide.start.lead": "Erstellen Sie, was Sie brauchen. Sie können diese Anleitung jederzeit über die Schaltfläche „?“ oben wieder öffnen.", diff --git a/Core/wwwroot/locales/en.json b/Core/wwwroot/locales/en.json index 743a84e..be7224f 100644 --- a/Core/wwwroot/locales/en.json +++ b/Core/wwwroot/locales/en.json @@ -699,6 +699,7 @@ "guide.install.needPads": "Required for gamepads", "guide.install.needSeats": "Optional, for seats", "guide.install.optional": "optional", + "guide.install.remoteiddOff": "turned off", "guide.start.nav": "Get started", "guide.start.title": "All set to start!", "guide.start.lead": "Create what you need. You can come back to this guide at any time from the \"?\" button at the top.", diff --git a/Core/wwwroot/locales/en_GB.json b/Core/wwwroot/locales/en_GB.json index ecd74a5..5d0f6a5 100644 --- a/Core/wwwroot/locales/en_GB.json +++ b/Core/wwwroot/locales/en_GB.json @@ -699,6 +699,7 @@ "guide.install.needPads": "Required for gamepads", "guide.install.needSeats": "Optional, for seats", "guide.install.optional": "optional", + "guide.install.remoteiddOff": "turned off", "guide.start.nav": "Get started", "guide.start.title": "All set to start!", "guide.start.lead": "Create what you need. You can come back to this guide at any time from the \"?\" button at the top.", diff --git a/Core/wwwroot/locales/en_US.json b/Core/wwwroot/locales/en_US.json index 9c0bf11..edb5462 100644 --- a/Core/wwwroot/locales/en_US.json +++ b/Core/wwwroot/locales/en_US.json @@ -699,6 +699,7 @@ "guide.install.needPads": "Required for gamepads", "guide.install.needSeats": "Optional, for seats", "guide.install.optional": "optional", + "guide.install.remoteiddOff": "turned off", "guide.start.nav": "Get started", "guide.start.title": "All set to start!", "guide.start.lead": "Create what you need. You can come back to this guide at any time from the \"?\" button at the top.", diff --git a/Core/wwwroot/locales/es.json b/Core/wwwroot/locales/es.json index bcf1f14..d3bf08b 100644 --- a/Core/wwwroot/locales/es.json +++ b/Core/wwwroot/locales/es.json @@ -699,6 +699,7 @@ "guide.install.needPads": "Necesario para usar mandos", "guide.install.needSeats": "Opcional, para puestos", "guide.install.optional": "opcional", + "guide.install.remoteiddOff": "desactivado", "guide.start.nav": "Primeros pasos", "guide.start.title": "¡Todo listo para empezar!", "guide.start.lead": "Crea lo que necesites. Puedes volver a esta guía cuando quieras desde el botón «?» de arriba.", diff --git a/Core/wwwroot/locales/fr.json b/Core/wwwroot/locales/fr.json index 057e2a5..839b298 100644 --- a/Core/wwwroot/locales/fr.json +++ b/Core/wwwroot/locales/fr.json @@ -699,6 +699,7 @@ "guide.install.needPads": "Requis pour les manettes", "guide.install.needSeats": "Facultatif, pour les postes", "guide.install.optional": "facultatif", + "guide.install.remoteiddOff": "désactivé", "guide.start.nav": "Premiers pas", "guide.start.title": "Tout est prêt !", "guide.start.lead": "Créez ce dont vous avez besoin. Vous pouvez revenir à ce guide à tout moment avec le bouton « ? » en haut.", diff --git a/Core/wwwroot/locales/hu.json b/Core/wwwroot/locales/hu.json index 09dd789..bb4382b 100644 --- a/Core/wwwroot/locales/hu.json +++ b/Core/wwwroot/locales/hu.json @@ -699,6 +699,7 @@ "guide.install.needPads": "Kontrollerekhez szükséges", "guide.install.needSeats": "Opcionális, munkaállomásokhoz", "guide.install.optional": "opcionális", + "guide.install.remoteiddOff": "kikapcsolva", "guide.start.nav": "Első lépések", "guide.start.title": "Minden készen áll!", "guide.start.lead": "Hozza létre, amire szüksége van. Az útmutatóhoz bármikor visszatérhet a fenti „?” gombbal.", diff --git a/Core/wwwroot/locales/it.json b/Core/wwwroot/locales/it.json index 469803a..0cba019 100644 --- a/Core/wwwroot/locales/it.json +++ b/Core/wwwroot/locales/it.json @@ -699,6 +699,7 @@ "guide.install.needPads": "Necessario per i controller", "guide.install.needSeats": "Facoltativo, per le postazioni", "guide.install.optional": "facoltativo", + "guide.install.remoteiddOff": "disattivato", "guide.start.nav": "Primi passi", "guide.start.title": "Tutto pronto per iniziare!", "guide.start.lead": "Crea ciò che ti serve. Puoi tornare a questa guida in qualsiasi momento dal pulsante «?» in alto.", diff --git a/Core/wwwroot/locales/ja.json b/Core/wwwroot/locales/ja.json index 1433c65..9faf60e 100644 --- a/Core/wwwroot/locales/ja.json +++ b/Core/wwwroot/locales/ja.json @@ -699,6 +699,7 @@ "guide.install.needPads": "ゲームパッドに必要", "guide.install.needSeats": "任意(ワークステーション用)", "guide.install.optional": "任意", + "guide.install.remoteiddOff": "無効", "guide.start.nav": "はじめに", "guide.start.title": "準備完了です!", "guide.start.lead": "必要なものを作成しましょう。このガイドには上部の「?」ボタンからいつでも戻れます。", diff --git a/Core/wwwroot/locales/ko.json b/Core/wwwroot/locales/ko.json index a5e606c..1e4d94c 100644 --- a/Core/wwwroot/locales/ko.json +++ b/Core/wwwroot/locales/ko.json @@ -699,6 +699,7 @@ "guide.install.needPads": "게임패드 사용에 필요", "guide.install.needSeats": "선택 사항, 워크스테이션용", "guide.install.optional": "선택 사항", + "guide.install.remoteiddOff": "꺼짐", "guide.start.nav": "시작하기", "guide.start.title": "시작할 준비가 끝났습니다!", "guide.start.lead": "필요한 것을 만드세요. 위쪽의 ‘?’ 버튼으로 언제든지 이 가이드로 돌아올 수 있습니다.", diff --git a/Core/wwwroot/locales/pl.json b/Core/wwwroot/locales/pl.json index 63407a3..bfa2290 100644 --- a/Core/wwwroot/locales/pl.json +++ b/Core/wwwroot/locales/pl.json @@ -699,6 +699,7 @@ "guide.install.needPads": "Wymagane do korzystania z padów", "guide.install.needSeats": "Opcjonalne, dla stanowisk", "guide.install.optional": "opcjonalne", + "guide.install.remoteiddOff": "wyłączony", "guide.start.nav": "Pierwsze kroki", "guide.start.title": "Wszystko gotowe!", "guide.start.lead": "Utwórz to, czego potrzebujesz. Do przewodnika możesz wrócić w każdej chwili przyciskiem „?” u góry.", diff --git a/Core/wwwroot/locales/pt.json b/Core/wwwroot/locales/pt.json index e3bbf71..9a291e6 100644 --- a/Core/wwwroot/locales/pt.json +++ b/Core/wwwroot/locales/pt.json @@ -699,6 +699,7 @@ "guide.install.needPads": "Necessário para usar comandos", "guide.install.needSeats": "Opcional, para postos", "guide.install.optional": "opcional", + "guide.install.remoteiddOff": "desativado", "guide.start.nav": "Primeiros passos", "guide.start.title": "Tudo pronto para começar!", "guide.start.lead": "Crie o que precisar. Pode voltar a este guia quando quiser a partir do botão «?» no topo.", diff --git a/Core/wwwroot/locales/pt_BR.json b/Core/wwwroot/locales/pt_BR.json index 6ab8eb9..e3e8892 100644 --- a/Core/wwwroot/locales/pt_BR.json +++ b/Core/wwwroot/locales/pt_BR.json @@ -699,6 +699,7 @@ "guide.install.needPads": "Necessário para usar controles", "guide.install.needSeats": "Opcional, para postos", "guide.install.optional": "opcional", + "guide.install.remoteiddOff": "desativado", "guide.start.nav": "Primeiros passos", "guide.start.title": "Tudo pronto para começar!", "guide.start.lead": "Crie o que precisar. Pode voltar a este guia quando quiser a partir do botão “?” no topo.", diff --git a/Core/wwwroot/locales/ru.json b/Core/wwwroot/locales/ru.json index 78d5c0c..3718c5a 100644 --- a/Core/wwwroot/locales/ru.json +++ b/Core/wwwroot/locales/ru.json @@ -699,6 +699,7 @@ "guide.install.needPads": "Нужно для геймпадов", "guide.install.needSeats": "Необязательно, для рабочих мест", "guide.install.optional": "необязательно", + "guide.install.remoteiddOff": "отключён", "guide.start.nav": "Первые шаги", "guide.start.title": "Всё готово к началу!", "guide.start.lead": "Создайте то, что нужно. Вернуться к руководству можно в любой момент кнопкой «?» вверху.", diff --git a/Core/wwwroot/locales/sv.json b/Core/wwwroot/locales/sv.json index e3bf9cf..f1295e1 100644 --- a/Core/wwwroot/locales/sv.json +++ b/Core/wwwroot/locales/sv.json @@ -699,6 +699,7 @@ "guide.install.needPads": "Krävs för handkontroller", "guide.install.needSeats": "Valfritt, för arbetsstationer", "guide.install.optional": "valfritt", + "guide.install.remoteiddOff": "avstängt", "guide.start.nav": "Kom igång", "guide.start.title": "Allt klart att börja!", "guide.start.lead": "Skapa det du behöver. Du kan när som helst återvända till guiden via knappen ”?” högst upp.", diff --git a/Core/wwwroot/locales/tr.json b/Core/wwwroot/locales/tr.json index 61dd1a3..7ac04f0 100644 --- a/Core/wwwroot/locales/tr.json +++ b/Core/wwwroot/locales/tr.json @@ -699,6 +699,7 @@ "guide.install.needPads": "Oyun kumandaları için gerekli", "guide.install.needSeats": "İsteğe bağlı, iş istasyonları için", "guide.install.optional": "isteğe bağlı", + "guide.install.remoteiddOff": "kapalı", "guide.start.nav": "İlk adımlar", "guide.start.title": "Başlamaya hazırsınız!", "guide.start.lead": "İhtiyacınız olanı oluşturun. Bu rehbere istediğiniz zaman üstteki “?” düğmesinden dönebilirsiniz.", diff --git a/Core/wwwroot/locales/uk.json b/Core/wwwroot/locales/uk.json index b7765dc..637806e 100644 --- a/Core/wwwroot/locales/uk.json +++ b/Core/wwwroot/locales/uk.json @@ -699,6 +699,7 @@ "guide.install.needPads": "Потрібно для геймпадів", "guide.install.needSeats": "Необов’язково, для робочих місць", "guide.install.optional": "необов’язково", + "guide.install.remoteiddOff": "вимкнено", "guide.start.nav": "Перші кроки", "guide.start.title": "Усе готово до початку!", "guide.start.lead": "Створіть те, що потрібно. Повернутися до посібника можна будь-коли кнопкою «?» угорі.", diff --git a/Core/wwwroot/locales/vi.json b/Core/wwwroot/locales/vi.json index c3bd989..fb27639 100644 --- a/Core/wwwroot/locales/vi.json +++ b/Core/wwwroot/locales/vi.json @@ -699,6 +699,7 @@ "guide.install.needPads": "Cần để dùng tay cầm", "guide.install.needSeats": "Tùy chọn, cho máy trạm", "guide.install.optional": "tùy chọn", + "guide.install.remoteiddOff": "đang tắt", "guide.start.nav": "Bước đầu", "guide.start.title": "Mọi thứ đã sẵn sàng!", "guide.start.lead": "Hãy tạo những gì bạn cần. Bạn có thể quay lại hướng dẫn này bất cứ lúc nào bằng nút “?” ở trên cùng.", diff --git a/Core/wwwroot/locales/zh.json b/Core/wwwroot/locales/zh.json index 44c91e9..5284205 100644 --- a/Core/wwwroot/locales/zh.json +++ b/Core/wwwroot/locales/zh.json @@ -699,6 +699,7 @@ "guide.install.needPads": "使用手柄必需", "guide.install.needSeats": "可选,用于工作站", "guide.install.optional": "可选", + "guide.install.remoteiddOff": "已关闭", "guide.start.nav": "入门", "guide.start.title": "一切就绪,开始吧!", "guide.start.lead": "创建你需要的内容。你可以随时通过顶部的“?”按钮回到本指南。", diff --git a/Core/wwwroot/locales/zh_TW.json b/Core/wwwroot/locales/zh_TW.json index e6a47cd..0c15eed 100644 --- a/Core/wwwroot/locales/zh_TW.json +++ b/Core/wwwroot/locales/zh_TW.json @@ -699,6 +699,7 @@ "guide.install.needPads": "使用手把必需", "guide.install.needSeats": "選用,用於工作站", "guide.install.optional": "選用", + "guide.install.remoteiddOff": "已關閉", "guide.start.nav": "入門", "guide.start.title": "一切就緒,開始吧!", "guide.start.lead": "建立你需要的內容。你可以隨時透過頂端的「?」按鈕回到本指南。", diff --git a/Core/wwwroot/style.css b/Core/wwwroot/style.css index 950a29a..f404a58 100644 --- a/Core/wwwroot/style.css +++ b/Core/wwwroot/style.css @@ -2017,6 +2017,9 @@ section#view-sessions, section#view-seats { animation: viewIn .35s var(--ease); } .guide-dep-ok, .guide-dep-activates { border-color: rgba(var(--glow-green),.45); } .guide-dep-missing, .guide-dep-broken, .guide-dep-single { border-color: rgba(239,68,68,.45); } +/* Opcional y desactivado (RemoteIdd quitado al arrancar): aviso, no fallo. */ +.guide-dep-off { border-color: var(--amber); } +.guide-dep-off .guide-bang { color: var(--amber); } .guide-dep-mark { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--c-accent),.1); } .guide-dep-ok .guide-dep-mark, .guide-dep-activates .guide-dep-mark { background: rgba(var(--glow-green),.18); color: var(--green); } .guide-dep-mark svg { width: 18px; height: 18px; } diff --git a/Native/RemoteIdd/Provider/uninstall.ps1 b/Native/RemoteIdd/Provider/uninstall.ps1 index 9d3aa94..7087dee 100644 --- a/Native/RemoteIdd/Provider/uninstall.ps1 +++ b/Native/RemoteIdd/Provider/uninstall.ps1 @@ -65,4 +65,6 @@ if ($s.Thumbprint) { Write-Host 'Certificado de test eliminado.' } Remove-Item $state +# Motivo que dejó OpenStreamMS si tuvo que quitar RemoteIdd de RDP-Tcp al arrancar. +Remove-Item (Join-Path $env:ProgramData 'OpenStreamMS\remoteidd-off.json') -ErrorAction SilentlyContinue Write-Host 'Desinstalado. Si activaste testsigning solo para esto: bcdedit /set testsigning off' diff --git a/Services/Localization/Locales/bg.json b/Services/Localization/Locales/bg.json index f2715e8..db8292c 100644 --- a/Services/Localization/Locales/bg.json +++ b/Services/Localization/Locales/bg.json @@ -33,9 +33,10 @@ "session.passwordRequired": "Полето 'Password' е задължително.", "session.stopBeforeConfig": "Спринете сесията преди да модифицирате нейната конфигурация.", "session.stoppingWait": "Сесията се спира: изчакайте да приключи, за да промените нейната конфигурация.", - "rdpwrap.rdpTcpNotListening": "RDP-Tcp не слуша", + "rdpwrap.rdpTcpNotListening": "С RemoteIdd услугата „Отдалечен работен плот“ не отвори своята RDP връзка. В Windows Home и Pro това се случва, когато това, което позволява няколко сесии, не позволява зареждане на протоколни компоненти, които не са на Microsoft", "rdpwrap.notLoaded": "Услугата за отдалечен работен плот още не е заредила компонента, който позволява няколко сесии", "rdpwrap.singleSession": "Този компютър позволява само една сесия наведнъж", + "rdpwrap.remoteIddOff": "RemoteIdd е изключен: {0}. Работните места използват RDP дисплея на Windows. OpenStreamMS опитва RemoteIdd отново при всяко обновяване или преинсталиране.", "composite.reconnecting": "Свързване отново…", "rdpwrap.openSessionsPreventRestart": "Има отворени сесии ({0}): TermService не се рестартира сега; промяната влиза в сила при рестарт.", "rdpwrap.termServiceRestarted": "TermService рестартиран.", diff --git a/Services/Localization/Locales/cs.json b/Services/Localization/Locales/cs.json index 7713c6d..f286604 100644 --- a/Services/Localization/Locales/cs.json +++ b/Services/Localization/Locales/cs.json @@ -33,9 +33,10 @@ "session.passwordRequired": "Pole 'Password' je povinné.", "session.stopBeforeConfig": "Před úpravou konfigurace zastavte relaci.", "session.stoppingWait": "Relace se zastavuje: čekejte, než skončí, než změníte její konfiguraci.", - "rdpwrap.rdpTcpNotListening": "RDP-Tcp neposlouchá", + "rdpwrap.rdpTcpNotListening": "S RemoteIdd služba Vzdálená plocha neotevřela své připojení RDP. Ve Windows Home a Pro se to stává, když to, co umožňuje více relací, nedovolí načíst komponenty protokolu, které nejsou od Microsoftu", "rdpwrap.notLoaded": "Služba Vzdálená plocha zatím nenačetla komponentu, která umožňuje více relací", "rdpwrap.singleSession": "Tento počítač umožňuje jen jednu relaci najednou", + "rdpwrap.remoteIddOff": "RemoteIdd je vypnutý: {0}. Pracovní místa používají displej RDP systému Windows. OpenStreamMS zkusí RemoteIdd znovu při každé aktualizaci nebo přeinstalaci.", "composite.reconnecting": "Znovu se připojuje…", "rdpwrap.openSessionsPreventRestart": "Existují otevřené relace ({0}): TermService se nerestartuje nyní; změna se projeví po restartu.", "rdpwrap.termServiceRestarted": "TermService restartován.", diff --git a/Services/Localization/Locales/de.json b/Services/Localization/Locales/de.json index 3c1d8cc..6fc386a 100644 --- a/Services/Localization/Locales/de.json +++ b/Services/Localization/Locales/de.json @@ -33,9 +33,10 @@ "session.passwordRequired": "Feld 'Password' ist erforderlich.", "session.stopBeforeConfig": "Beenden Sie die Sitzung, bevor Sie ihre Konfiguration ändern.", "session.stoppingWait": "Die Sitzung wird beendet: warten Sie, bis sie beendet ist, bevor Sie ihre Konfiguration ändern.", - "rdpwrap.rdpTcpNotListening": "RDP-Tcp lauscht nicht", + "rdpwrap.rdpTcpNotListening": "Mit RemoteIdd hat der Remotedesktopdienst seine RDP-Verbindung nicht geöffnet. Unter Windows Home und Pro passiert das, wenn das, was mehrere Sitzungen ermöglicht, keine Protokollkomponenten zulässt, die nicht von Microsoft stammen", "rdpwrap.notLoaded": "Der Remotedesktopdienst hat die Komponente für mehrere Sitzungen noch nicht geladen", "rdpwrap.singleSession": "Dieser PC erlaubt nur eine Sitzung gleichzeitig", + "rdpwrap.remoteIddOff": "RemoteIdd ist deaktiviert: {0}. Die Arbeitsplätze verwenden die RDP-Anzeige von Windows. OpenStreamMS versucht RemoteIdd bei jedem Update oder jeder Neuinstallation erneut.", "composite.reconnecting": "Verbindung wird wiederhergestellt…", "rdpwrap.openSessionsPreventRestart": "Es gibt offene Sitzungen ({0}): TermService wird jetzt nicht neu gestartet; die Änderung wird nach dem Neustart wirksam.", "rdpwrap.termServiceRestarted": "TermService neu gestartet.", diff --git a/Services/Localization/Locales/en.json b/Services/Localization/Locales/en.json index 4aabc97..3ae1655 100644 --- a/Services/Localization/Locales/en.json +++ b/Services/Localization/Locales/en.json @@ -33,9 +33,10 @@ "session.passwordRequired": "The 'Password' field is required.", "session.stopBeforeConfig": "Stop the session before modifying its configuration.", "session.stoppingWait": "The session is stopping: wait for it to finish before changing its configuration.", - "rdpwrap.rdpTcpNotListening": "RDP-Tcp is not listening", + "rdpwrap.rdpTcpNotListening": "With RemoteIdd, the Remote Desktop service didn't open its RDP connection. On Windows Home and Pro this happens when whatever enables several sessions doesn't let Remote Desktop load protocol components that aren't Microsoft's", "rdpwrap.notLoaded": "The Remote Desktop service has not loaded the component that allows several sessions yet", "rdpwrap.singleSession": "This PC only allows one session at a time", + "rdpwrap.remoteIddOff": "RemoteIdd is turned off: {0}. Seats use Windows' own RDP display instead. OpenStreamMS tries RemoteIdd again whenever it's updated or reinstalled.", "composite.reconnecting": "Reconnecting…", "rdpwrap.openSessionsPreventRestart": "There are open sessions ({0}): TermService will not be restarted now; the change applies on reboot.", "rdpwrap.termServiceRestarted": "TermService restarted.", diff --git a/Services/Localization/Locales/en_GB.json b/Services/Localization/Locales/en_GB.json index 61648e0..7b55ea6 100644 --- a/Services/Localization/Locales/en_GB.json +++ b/Services/Localization/Locales/en_GB.json @@ -33,9 +33,10 @@ "session.passwordRequired": "The 'Password' field is required.", "session.stopBeforeConfig": "Stop the session before modifying its configuration.", "session.stoppingWait": "The session is stopping: wait for it to finish before changing its configuration.", - "rdpwrap.rdpTcpNotListening": "RDP-Tcp is not listening", + "rdpwrap.rdpTcpNotListening": "With RemoteIdd, the Remote Desktop service didn't open its RDP connection. On Windows Home and Pro this happens when whatever enables several sessions doesn't let Remote Desktop load protocol components that aren't Microsoft's", "rdpwrap.notLoaded": "The Remote Desktop service has not loaded the component that allows several sessions yet", "rdpwrap.singleSession": "This PC only allows one session at a time", + "rdpwrap.remoteIddOff": "RemoteIdd is turned off: {0}. Seats use Windows' own RDP display instead. OpenStreamMS tries RemoteIdd again whenever it's updated or reinstalled.", "composite.reconnecting": "Reconnecting…", "rdpwrap.openSessionsPreventRestart": "There are open sessions ({0}): TermService will not be restarted now; the change applies on reboot.", "rdpwrap.termServiceRestarted": "TermService restarted.", diff --git a/Services/Localization/Locales/en_US.json b/Services/Localization/Locales/en_US.json index 5da2755..6739dff 100644 --- a/Services/Localization/Locales/en_US.json +++ b/Services/Localization/Locales/en_US.json @@ -33,9 +33,10 @@ "session.passwordRequired": "The 'Password' field is required.", "session.stopBeforeConfig": "Stop the session before modifying its configuration.", "session.stoppingWait": "The session is stopping: wait for it to finish before changing its configuration.", - "rdpwrap.rdpTcpNotListening": "RDP-Tcp is not listening", + "rdpwrap.rdpTcpNotListening": "With RemoteIdd, the Remote Desktop service didn't open its RDP connection. On Windows Home and Pro this happens when whatever enables several sessions doesn't let Remote Desktop load protocol components that aren't Microsoft's", "rdpwrap.notLoaded": "The Remote Desktop service has not loaded the component that allows several sessions yet", "rdpwrap.singleSession": "This PC only allows one session at a time", + "rdpwrap.remoteIddOff": "RemoteIdd is turned off: {0}. Seats use Windows' own RDP display instead. OpenStreamMS tries RemoteIdd again whenever it's updated or reinstalled.", "composite.reconnecting": "Reconnecting…", "rdpwrap.openSessionsPreventRestart": "There are open sessions ({0}): TermService will not be restarted now; the change applies on reboot.", "rdpwrap.termServiceRestarted": "TermService restarted.", diff --git a/Services/Localization/Locales/es.json b/Services/Localization/Locales/es.json index 7eda167..5720177 100644 --- a/Services/Localization/Locales/es.json +++ b/Services/Localization/Locales/es.json @@ -33,9 +33,10 @@ "session.passwordRequired": "El campo 'Password' es obligatorio.", "session.stopBeforeConfig": "Detén la sesión antes de modificar su configuración.", "session.stoppingWait": "La sesión se está deteniendo: espera a que termine para cambiar su configuración.", - "rdpwrap.rdpTcpNotListening": "RDP-Tcp no escucha", + "rdpwrap.rdpTcpNotListening": "Con RemoteIdd, el servicio de Escritorio remoto no abrió su conexión RDP. En Windows Home y Pro pasa cuando lo que permite varias sesiones no deja cargar componentes de protocolo que no son de Microsoft", "rdpwrap.notLoaded": "El servicio de Escritorio remoto aún no ha cargado el componente que permite varias sesiones", "rdpwrap.singleSession": "Este equipo solo admite una sesión a la vez", + "rdpwrap.remoteIddOff": "RemoteIdd está desactivado: {0}. Los puestos usan la pantalla RDP de Windows. OpenStreamMS vuelve a probar RemoteIdd cada vez que se actualiza o se reinstala.", "composite.reconnecting": "Reconectando…", "rdpwrap.openSessionsPreventRestart": "Hay sesiones abiertas ({0}): TermService no se reinicia ahora; el cambio se aplica al reiniciar el equipo.", "rdpwrap.termServiceRestarted": "TermService reiniciado.", diff --git a/Services/Localization/Locales/fr.json b/Services/Localization/Locales/fr.json index 5e4d883..e89d13e 100644 --- a/Services/Localization/Locales/fr.json +++ b/Services/Localization/Locales/fr.json @@ -33,9 +33,10 @@ "session.passwordRequired": "Le champ 'Password' est obligatoire.", "session.stopBeforeConfig": "Arrêtez la session avant de modifier sa configuration.", "session.stoppingWait": "La session s'arrête : attendez qu'elle se termine avant de changer sa configuration.", - "rdpwrap.rdpTcpNotListening": "RDP-Tcp no escucha", + "rdpwrap.rdpTcpNotListening": "Avec RemoteIdd, le service Bureau à distance n'a pas ouvert sa connexion RDP. Sous Windows Famille et Pro, cela arrive quand ce qui permet plusieurs sessions ne laisse pas charger de composants de protocole autres que ceux de Microsoft", "rdpwrap.notLoaded": "Le service Bureau à distance n'a pas encore chargé le composant qui permet plusieurs sessions", "rdpwrap.singleSession": "Ce PC n'autorise qu'une seule session à la fois", + "rdpwrap.remoteIddOff": "RemoteIdd est désactivé : {0}. Les postes utilisent l'affichage RDP de Windows. OpenStreamMS réessaie RemoteIdd à chaque mise à jour ou réinstallation.", "composite.reconnecting": "Reconnexion…", "rdpwrap.openSessionsPreventRestart": "Hay sesiones abiertas ({0}): TermService no se reinicia ahora; el cambio se aplica al reiniciar el equipo.", "rdpwrap.termServiceRestarted": "TermService reiniciado.", diff --git a/Services/Localization/Locales/hu.json b/Services/Localization/Locales/hu.json index d4b3296..609e241 100644 --- a/Services/Localization/Locales/hu.json +++ b/Services/Localization/Locales/hu.json @@ -33,9 +33,10 @@ "session.passwordRequired": "A 'Password' mező kötelező.", "session.stopBeforeConfig": "Állítsa le a munkamenetet a konfiguráció módosítása előtt.", "session.stoppingWait": "A munkamenet leáll: várjon, amíg befejeződik, mielőtt megváltoztatná a konfigurációját.", - "rdpwrap.rdpTcpNotListening": "RDP-Tcp nem hallgat", + "rdpwrap.rdpTcpNotListening": "RemoteIdd mellett a Távoli asztal szolgáltatás nem nyitotta meg az RDP-kapcsolatát. Windows Home és Pro rendszeren ez akkor történik, ha a több munkamenetet lehetővé tévő összetevő nem engedi betölteni a nem Microsoft-féle protokollösszetevőket", "rdpwrap.notLoaded": "A Távoli asztal szolgáltatás még nem töltötte be a több munkamenetet engedélyező összetevőt", "rdpwrap.singleSession": "Ez a gép egyszerre csak egy munkamenetet enged", + "rdpwrap.remoteIddOff": "A RemoteIdd ki van kapcsolva: {0}. A munkaállomások a Windows RDP-kijelzőjét használják. Az OpenStreamMS minden frissítéskor vagy újratelepítéskor újra megpróbálja a RemoteIdd-t.", "composite.reconnecting": "Újracsatlakozás…", "rdpwrap.openSessionsPreventRestart": "Megnyitott munkamenetek vannak ({0}): a TermService most nem indul újra; a változás a újraindításkor érvényesül.", "rdpwrap.termServiceRestarted": "TermService újraindítva.", diff --git a/Services/Localization/Locales/it.json b/Services/Localization/Locales/it.json index 6e94b3f..1ac6327 100644 --- a/Services/Localization/Locales/it.json +++ b/Services/Localization/Locales/it.json @@ -33,9 +33,10 @@ "session.passwordRequired": "Il campo 'Password' è obbligatorio.", "session.stopBeforeConfig": "Arrestare la sessione prima di modificarne la configurazione.", "session.stoppingWait": "La sessione si sta arrestando: attendere che termini prima di modificarne la configurazione.", - "rdpwrap.rdpTcpNotListening": "RDP-Tcp non è in ascolto", + "rdpwrap.rdpTcpNotListening": "Con RemoteIdd, il servizio Desktop remoto non ha aperto la sua connessione RDP. Su Windows Home e Pro succede quando ciò che consente più sessioni non lascia caricare componenti di protocollo non Microsoft", "rdpwrap.notLoaded": "Il servizio Desktop remoto non ha ancora caricato il componente che consente più sessioni", "rdpwrap.singleSession": "Questo PC consente una sola sessione alla volta", + "rdpwrap.remoteIddOff": "RemoteIdd è disattivato: {0}. Le postazioni usano il display RDP di Windows. OpenStreamMS riprova RemoteIdd a ogni aggiornamento o reinstallazione.", "composite.reconnecting": "Riconnessione…", "rdpwrap.openSessionsPreventRestart": "Ci sono sessioni aperte ({0}): TermService non viene riavviato ora; la modifica ha effetto al riavvio.", "rdpwrap.termServiceRestarted": "TermService riavviato.", diff --git a/Services/Localization/Locales/ja.json b/Services/Localization/Locales/ja.json index 335a610..5f0a55e 100644 --- a/Services/Localization/Locales/ja.json +++ b/Services/Localization/Locales/ja.json @@ -33,9 +33,10 @@ "session.passwordRequired": "'Password' フィールドは必須です。", "session.stopBeforeConfig": "設定を変更する前にセッションを停止してください。", "session.stoppingWait": "セッションが停止中です:設定を変更する前に終了するまでお待ちください。", - "rdpwrap.rdpTcpNotListening": "RDP-Tcp がリッスンしていません", + "rdpwrap.rdpTcpNotListening": "RemoteIdd を有効にすると、リモート デスクトップ サービスが RDP 接続を開きませんでした。Windows Home と Pro では、複数セッションを可能にしているものが Microsoft 以外のプロトコル コンポーネントの読み込みを許可しない場合に起こります", "rdpwrap.notLoaded": "リモート デスクトップ サービスは、複数セッションを可能にするコンポーネントをまだ読み込んでいません", "rdpwrap.singleSession": "この PC では同時に 1 つのセッションしか使えません", + "rdpwrap.remoteIddOff": "RemoteIdd は無効になっています: {0}。ワークステーションは Windows の RDP ディスプレイを使います。OpenStreamMS は更新または再インストールのたびに RemoteIdd を再試行します。", "composite.reconnecting": "再接続しています…", "rdpwrap.openSessionsPreventRestart": "開いているセッションがあります ({0}): TermService は今再起動しません; 変更は再起動後に反映されます。", "rdpwrap.termServiceRestarted": "TermService を再起動しました。", diff --git a/Services/Localization/Locales/ko.json b/Services/Localization/Locales/ko.json index 1d4f57f..eedced3 100644 --- a/Services/Localization/Locales/ko.json +++ b/Services/Localization/Locales/ko.json @@ -33,9 +33,10 @@ "session.passwordRequired": "'Password' 필드는 필수입니다。", "session.stopBeforeConfig": "구성을 변경하기 전에 세션을 중지하세요.", "session.stoppingWait": "세션이 중지 중입니다: 구성을 변경하기 전에 완료될 때까지 기다리세요.", - "rdpwrap.rdpTcpNotListening": "RDP-Tcp가 수신 대기 중이 아닙니다", + "rdpwrap.rdpTcpNotListening": "RemoteIdd를 사용하면 원격 데스크톱 서비스가 RDP 연결을 열지 않았습니다. Windows Home과 Pro에서는 여러 세션을 가능하게 하는 구성 요소가 Microsoft가 아닌 프로토콜 구성 요소의 로드를 허용하지 않을 때 발생합니다", "rdpwrap.notLoaded": "원격 데스크톱 서비스가 아직 여러 세션을 허용하는 구성 요소를 로드하지 않았습니다", "rdpwrap.singleSession": "이 PC는 한 번에 하나의 세션만 허용합니다", + "rdpwrap.remoteIddOff": "RemoteIdd가 꺼져 있습니다: {0}. 워크스테이션은 Windows의 RDP 디스플레이를 사용합니다. OpenStreamMS는 업데이트하거나 다시 설치할 때마다 RemoteIdd를 다시 시도합니다.", "composite.reconnecting": "다시 연결하는 중…", "rdpwrap.openSessionsPreventRestart": "열린 세션이 있습니다 ({0}): TermService를 지금 다시 시작하지 않습니다; 변경 사항은 재부팅 후 적용됩니다.", "rdpwrap.termServiceRestarted": "TermService가 다시 시작되었습니다.", diff --git a/Services/Localization/Locales/pl.json b/Services/Localization/Locales/pl.json index f0dab8c..5c310b6 100644 --- a/Services/Localization/Locales/pl.json +++ b/Services/Localization/Locales/pl.json @@ -33,9 +33,10 @@ "session.passwordRequired": "Pole 'Password' jest wymagane.", "session.stopBeforeConfig": "Zatrzymaj sesję przed modyfikacją jej konfiguracji.", "session.stoppingWait": "Sesja jest zatrzymywana: poczekaj, aż się zakończy, zanim zmienisz jej konfigurację.", - "rdpwrap.rdpTcpNotListening": "RDP-Tcp nie nasłuchuje", + "rdpwrap.rdpTcpNotListening": "Z RemoteIdd usługa Pulpit zdalny nie otworzyła połączenia RDP. W Windows Home i Pro dzieje się tak, gdy to, co umożliwia wiele sesji, nie pozwala wczytać składników protokołu innych niż Microsoftu", "rdpwrap.notLoaded": "Usługa Pulpit zdalny nie załadowała jeszcze składnika, który pozwala na wiele sesji", "rdpwrap.singleSession": "Ten komputer pozwala tylko na jedną sesję naraz", + "rdpwrap.remoteIddOff": "RemoteIdd jest wyłączony: {0}. Stanowiska używają ekranu RDP systemu Windows. OpenStreamMS ponawia próbę z RemoteIdd przy każdej aktualizacji lub ponownej instalacji.", "composite.reconnecting": "Ponowne łączenie…", "rdpwrap.openSessionsPreventRestart": "Istnieją otwarte sesje ({0}): TermService nie zostanie teraz zrestartowany; zmiana wejdzie w życie po restarcie.", "rdpwrap.termServiceRestarted": "TermService zrestartowany.", diff --git a/Services/Localization/Locales/pt.json b/Services/Localization/Locales/pt.json index 4b8e84b..53e0917 100644 --- a/Services/Localization/Locales/pt.json +++ b/Services/Localization/Locales/pt.json @@ -33,9 +33,10 @@ "session.passwordRequired": "O campo 'Password' é obrigatório.", "session.stopBeforeConfig": "Pare a sessão antes de modificar a sua configuração.", "session.stoppingWait": "A sessão está a parar: aguarde que termine antes de alterar a sua configuração.", - "rdpwrap.rdpTcpNotListening": "RDP-Tcp não está a escutar", + "rdpwrap.rdpTcpNotListening": "Com o RemoteIdd, o serviço Ambiente de Trabalho Remoto não abriu a sua ligação RDP. No Windows Home e Pro isto acontece quando aquilo que permite várias sessões não deixa carregar componentes de protocolo que não sejam da Microsoft", "rdpwrap.notLoaded": "O serviço Ambiente de Trabalho Remoto ainda não carregou o componente que permite várias sessões", "rdpwrap.singleSession": "Este PC só permite uma sessão de cada vez", + "rdpwrap.remoteIddOff": "O RemoteIdd está desativado: {0}. Os postos usam o ecrã RDP do Windows. O OpenStreamMS volta a tentar o RemoteIdd sempre que é atualizado ou reinstalado.", "composite.reconnecting": "A restabelecer a ligação…", "rdpwrap.openSessionsPreventRestart": "Existem sessões abertas ({0}): TermService não será reiniciado agora; a alteração aplica-se no reinício.", "rdpwrap.termServiceRestarted": "TermService reiniciado.", diff --git a/Services/Localization/Locales/pt_BR.json b/Services/Localization/Locales/pt_BR.json index 96cf1aa..65af137 100644 --- a/Services/Localization/Locales/pt_BR.json +++ b/Services/Localization/Locales/pt_BR.json @@ -33,9 +33,10 @@ "session.passwordRequired": "O campo 'Password' é obrigatório.", "session.stopBeforeConfig": "Pare a sessão antes de modificar a sua configuração.", "session.stoppingWait": "A sessão está parando: aguarde terminar antes de alterar a sua configuração.", - "rdpwrap.rdpTcpNotListening": "RDP-Tcp não está escutando", + "rdpwrap.rdpTcpNotListening": "Com o RemoteIdd, o serviço Área de Trabalho Remota não abriu sua conexão RDP. No Windows Home e Pro isso acontece quando o que permite várias sessões não deixa carregar componentes de protocolo que não sejam da Microsoft", "rdpwrap.notLoaded": "O serviço de Área de Trabalho Remota ainda não carregou o componente que permite várias sessões", "rdpwrap.singleSession": "Este PC só permite uma sessão por vez", + "rdpwrap.remoteIddOff": "O RemoteIdd está desativado: {0}. Os postos usam a tela RDP do Windows. O OpenStreamMS tenta o RemoteIdd de novo sempre que é atualizado ou reinstalado.", "composite.reconnecting": "Reconectando…", "rdpwrap.openSessionsPreventRestart": "Existem sessões abertas ({0}): TermService não será reiniciado agora; a alteração se aplica na reinicialização.", "rdpwrap.termServiceRestarted": "TermService reiniciado.", diff --git a/Services/Localization/Locales/ru.json b/Services/Localization/Locales/ru.json index 92cb9e8..f60047d 100644 --- a/Services/Localization/Locales/ru.json +++ b/Services/Localization/Locales/ru.json @@ -33,9 +33,10 @@ "session.passwordRequired": "Поле 'Password' обязательно.", "session.stopBeforeConfig": "Остановите сеанс перед изменением его конфигурации.", "session.stoppingWait": "Сеанс останавливается: дождитесь завершения, прежде чем менять его конфигурацию.", - "rdpwrap.rdpTcpNotListening": "RDP-Tcp не слушает", + "rdpwrap.rdpTcpNotListening": "С RemoteIdd служба удалённых рабочих столов не открыла своё RDP-подключение. В Windows Home и Pro так бывает, когда то, что разрешает несколько сеансов, не даёт загружать компоненты протокола не от Microsoft", "rdpwrap.notLoaded": "Служба удалённых рабочих столов ещё не загрузила компонент, разрешающий несколько сеансов", "rdpwrap.singleSession": "Этот ПК допускает только один сеанс одновременно", + "rdpwrap.remoteIddOff": "RemoteIdd отключён: {0}. Рабочие места используют RDP-дисплей Windows. OpenStreamMS снова пробует RemoteIdd при каждом обновлении или переустановке.", "composite.reconnecting": "Переподключение…", "rdpwrap.openSessionsPreventRestart": "Есть открытые сессии ({0}): TermService не перезапускается сейчас; изменение вступит в силу при перезагрузке.", "rdpwrap.termServiceRestarted": "TermService перезапущен.", diff --git a/Services/Localization/Locales/sv.json b/Services/Localization/Locales/sv.json index df62377..0ae5316 100644 --- a/Services/Localization/Locales/sv.json +++ b/Services/Localization/Locales/sv.json @@ -33,9 +33,10 @@ "session.passwordRequired": "Fältet 'Password' är obligatoriskt.", "session.stopBeforeConfig": "Stoppa sessionen innan du ändrar dess konfiguration.", "session.stoppingWait": "Sessionen stoppas: vänta tills den är klar innan du ändrar dess konfiguration.", - "rdpwrap.rdpTcpNotListening": "RDP-Tcp lyssnar inte", + "rdpwrap.rdpTcpNotListening": "Med RemoteIdd öppnade tjänsten Fjärrskrivbord inte sin RDP-anslutning. I Windows Home och Pro händer det när det som tillåter flera sessioner inte låter Fjärrskrivbord läsa in protokollkomponenter som inte kommer från Microsoft", "rdpwrap.notLoaded": "Tjänsten Fjärrskrivbord har ännu inte läst in komponenten som tillåter flera sessioner", "rdpwrap.singleSession": "Den här datorn tillåter bara en session åt gången", + "rdpwrap.remoteIddOff": "RemoteIdd är avstängt: {0}. Arbetsstationerna använder Windows RDP-skärm. OpenStreamMS försöker med RemoteIdd igen vid varje uppdatering eller ominstallation.", "composite.reconnecting": "Återansluter…", "rdpwrap.openSessionsPreventRestart": "Det finns öppna sessioner ({0}): TermService startas inte om nu; ändringen träder i kraft vid omstart.", "rdpwrap.termServiceRestarted": "TermService startad om.", diff --git a/Services/Localization/Locales/tr.json b/Services/Localization/Locales/tr.json index 225f0b3..78434a4 100644 --- a/Services/Localization/Locales/tr.json +++ b/Services/Localization/Locales/tr.json @@ -33,9 +33,10 @@ "session.passwordRequired": "'Password' alanı zorunludur.", "session.stopBeforeConfig": "Yapılandırmasını değiştirmeden önce oturumu durdurun.", "session.stoppingWait": "Oturum durduruluyor: yapılandırmayı değiştirmeden önce bitmesini bekleyin.", - "rdpwrap.rdpTcpNotListening": "RDP-Tcp dinlemiyor", + "rdpwrap.rdpTcpNotListening": "RemoteIdd ile Uzak Masaüstü hizmeti RDP bağlantısını açmadı. Windows Home ve Pro'da bu, birden fazla oturuma izin veren bileşen Microsoft dışı protokol bileşenlerinin yüklenmesine izin vermediğinde olur", "rdpwrap.notLoaded": "Uzak Masaüstü hizmeti, birden fazla oturuma izin veren bileşeni henüz yüklemedi", "rdpwrap.singleSession": "Bu bilgisayar aynı anda yalnızca bir oturuma izin veriyor", + "rdpwrap.remoteIddOff": "RemoteIdd kapalı: {0}. İş istasyonları Windows'un RDP ekranını kullanır. OpenStreamMS her güncellemede veya yeniden kurulumda RemoteIdd'yi yeniden dener.", "composite.reconnecting": "Yeniden bağlanıyor…", "rdpwrap.openSessionsPreventRestart": "Açık oturumlar var ({0}): TermService şimdi yeniden başlatılmayacak; değişiklik yeniden başlatmada geçerli olacak.", "rdpwrap.termServiceRestarted": "TermService yeniden başlatıldı.", diff --git a/Services/Localization/Locales/uk.json b/Services/Localization/Locales/uk.json index 73ad5e5..41bc0fc 100644 --- a/Services/Localization/Locales/uk.json +++ b/Services/Localization/Locales/uk.json @@ -33,9 +33,10 @@ "session.passwordRequired": "Поле 'Password' обов'язкове.", "session.stopBeforeConfig": "Зупиніть сеанс перед зміною його конфігурації.", "session.stoppingWait": "Сеанс зупиняється: зачекайте, поки він завершиться, перед тим як змінювати його конфігурацію.", - "rdpwrap.rdpTcpNotListening": "RDP-Tcp не прослуховує", + "rdpwrap.rdpTcpNotListening": "З RemoteIdd служба віддалених робочих столів не відкрила своє RDP-підключення. У Windows Home і Pro так буває, коли те, що дозволяє кілька сеансів, не дає завантажувати компоненти протоколу не від Microsoft", "rdpwrap.notLoaded": "Служба віддаленого робочого стола ще не завантажила компонент, що дозволяє кілька сеансів", "rdpwrap.singleSession": "Цей ПК дозволяє лише один сеанс одночасно", + "rdpwrap.remoteIddOff": "RemoteIdd вимкнено: {0}. Робочі місця використовують RDP-дисплей Windows. OpenStreamMS знову пробує RemoteIdd під час кожного оновлення або перевстановлення.", "composite.reconnecting": "Повторне підключення…", "rdpwrap.openSessionsPreventRestart": "Є відкриті сесії ({0}): TermService не перезапускається зараз; зміна набуде чинності при перезавантаженні.", "rdpwrap.termServiceRestarted": "TermService перезапущено.", diff --git a/Services/Localization/Locales/vi.json b/Services/Localization/Locales/vi.json index 4acfb68..fabaf2a 100644 --- a/Services/Localization/Locales/vi.json +++ b/Services/Localization/Locales/vi.json @@ -33,9 +33,10 @@ "session.passwordRequired": "Trường 'Password' là bắt buộc.", "session.stopBeforeConfig": "Dừng phiên trước khi sửa đổi cấu hình của nó.", "session.stoppingWait": "Phiên đang dừng: hãy đợi nó kết thúc trước khi thay đổi cấu hình.", - "rdpwrap.rdpTcpNotListening": "RDP-Tcp không lắng nghe", + "rdpwrap.rdpTcpNotListening": "Khi bật RemoteIdd, dịch vụ Máy tính Từ xa không mở kết nối RDP. Trên Windows Home và Pro, điều này xảy ra khi thành phần cho phép nhiều phiên không cho tải các thành phần giao thức không phải của Microsoft", "rdpwrap.notLoaded": "Dịch vụ Máy tính Từ xa chưa tải thành phần cho phép nhiều phiên", "rdpwrap.singleSession": "Máy này chỉ cho phép một phiên mỗi lúc", + "rdpwrap.remoteIddOff": "RemoteIdd đang tắt: {0}. Các máy trạm dùng màn hình RDP của Windows. OpenStreamMS thử lại RemoteIdd mỗi khi được cập nhật hoặc cài đặt lại.", "composite.reconnecting": "Đang kết nối lại…", "rdpwrap.openSessionsPreventRestart": "Có phiên mở ({0}): TermService không khởi động lại ngay; thay đổi có hiệu lực khi khởi động lại.", "rdpwrap.termServiceRestarted": "TermService đã khởi động lại.", diff --git a/Services/Localization/Locales/zh.json b/Services/Localization/Locales/zh.json index b4e4d7d..c591f07 100644 --- a/Services/Localization/Locales/zh.json +++ b/Services/Localization/Locales/zh.json @@ -33,9 +33,10 @@ "session.passwordRequired": "'Password' 字段为必填。", "session.stopBeforeConfig": "在修改配置前停止会话。", "session.stoppingWait": "会话正在停止:请等待其完成后再更改配置。", - "rdpwrap.rdpTcpNotListening": "RDP-Tcp 未监听", + "rdpwrap.rdpTcpNotListening": "启用 RemoteIdd 后,远程桌面服务没有打开 RDP 连接。在 Windows 家庭版和专业版上,这通常是因为实现多会话的组件不允许加载非微软的协议组件", "rdpwrap.notLoaded": "远程桌面服务尚未加载允许多个会话的组件", "rdpwrap.singleSession": "此电脑一次只允许一个会话", + "rdpwrap.remoteIddOff": "RemoteIdd 已关闭:{0}。工作站使用 Windows 自带的 RDP 显示。每次更新或重新安装 OpenStreamMS 时都会再次尝试 RemoteIdd。", "composite.reconnecting": "正在重新连接…", "rdpwrap.openSessionsPreventRestart": "存在打开的会话 ({0}): TermService 当前不重启; 更改将在重启后生效。", "rdpwrap.termServiceRestarted": "TermService 已重启。", diff --git a/Services/Localization/Locales/zh_TW.json b/Services/Localization/Locales/zh_TW.json index 0e832d3..a669441 100644 --- a/Services/Localization/Locales/zh_TW.json +++ b/Services/Localization/Locales/zh_TW.json @@ -33,9 +33,10 @@ "session.passwordRequired": "'Password' 欄位為必填。", "session.stopBeforeConfig": "修改配置前請先停止工作階段。", "session.stoppingWait": "工作階段正在停止:請等待其結束後再更改配置。", - "rdpwrap.rdpTcpNotListening": "RDP-Tcp 未監聽", + "rdpwrap.rdpTcpNotListening": "啟用 RemoteIdd 後,遠端桌面服務沒有開啟 RDP 連線。在 Windows 家用版和專業版上,這通常是因為實現多工作階段的元件不允許載入非 Microsoft 的通訊協定元件", "rdpwrap.notLoaded": "遠端桌面服務尚未載入允許多個工作階段的元件", "rdpwrap.singleSession": "此電腦一次只允許一個工作階段", + "rdpwrap.remoteIddOff": "RemoteIdd 已關閉:{0}。工作站使用 Windows 內建的 RDP 顯示。每次更新或重新安裝 OpenStreamMS 時都會再次嘗試 RemoteIdd。", "composite.reconnecting": "正在重新連線…", "rdpwrap.openSessionsPreventRestart": "存在開啟的工作階段 ({0}): TermService 目前不重啟; 變更將在重啟後生效。", "rdpwrap.termServiceRestarted": "TermService 已重啟。", diff --git a/Services/Session/RdpWrapperManager.cs b/Services/Session/RdpWrapperManager.cs index db78873..4927f6c 100644 --- a/Services/Session/RdpWrapperManager.cs +++ b/Services/Session/RdpWrapperManager.cs @@ -36,7 +36,14 @@ public record RdpWrapperStatus( /// true si RDP-Tcp pasa por el proveedor de RemoteIdd (captura remoteidd disponible). bool RemoteIdd, /// Versión de termsrv.dll del sistema (file version). - string? TermsrvVersion); + string? TermsrvVersion, + /// + /// RemoteIdd instalado pero quitado de RDP-Tcp en el arranque porque no funcionaba: + /// "rdpTcpNotListening", "notLoaded" o "singleSession". Null si no. + /// + string? RemoteIddOffReason, + /// Lo mismo explicado para el usuario, en el idioma de la petición. + string? RemoteIddOffText); /// /// Multi-RDP: varias sesiones de Windows a la vez. Oficialmente es Windows Server con el rol Host @@ -67,6 +74,7 @@ public RdpWrapperStatus GetStatus() // cliente arranca con la primera conexión) o con la DLL anterior hasta reiniciar. Si ya // hay varias sesiones activas, funciona aunque no se haya podido mirar. var pending = source == "thirdParty" && loaded != true && active < 2; + var offReason = RemoteIddOffReason(); return new RdpWrapperStatus( Allowed: source is not null && !pending, @@ -78,7 +86,9 @@ public RdpWrapperStatus GetStatus() ActiveSessions: active, Edition: edition, RemoteIdd: IsRemoteIddActive(), - TermsrvVersion: ReadTermsrvVersion()); + TermsrvVersion: ReadTermsrvVersion(), + RemoteIddOffReason: offReason, + RemoteIddOffText: offReason is null ? null : RemoteIddOffText(offReason)); } // ── Arranque: RemoteIdd ────────────────────────────────────────────────── @@ -200,25 +210,85 @@ private void EnsureMultiRdpCore(CancellationToken ct) Thread.Sleep(2000); if (problem is null) { + ClearRemoteIddOff(); Logger.Log("[MultiRdp] RDP-Tcp escuchando con el proveedor de RemoteIdd: RemoteIdd disponible."); return; } - Logger.Error($"[MultiRdp] RemoteIdd sin funcionar ({problem}). Se quita RemoteIdd de RDP-Tcp."); + // Se quita para no dejar el equipo sin Escritorio remoto. No se marca como imposible: la + // próxima actualización o reinstalación de OpenStreamMS lo vuelve a poner y a probar (el + // usuario puede haber cambiado entre tanto lo que permite varias sesiones). + Logger.Error("[MultiRdp] " + RemoteIddOffText(problem)); LeaveRemoteIdd(); + SaveRemoteIddOff(problem); ApplyTermServiceChange(); Logger.Log($"[MultiRdp] RemoteIdd fuera de RDP-Tcp. Estado: {GetStatus()}"); } - /// Null si el equipo admite varias sesiones y RDP-Tcp escucha; si no, el motivo. + /// Null si el equipo admite varias sesiones y RDP-Tcp escucha; si no, el código del motivo. private string? RemoteIddProblem() { var st = GetStatus(); - if (st.Pending) return BackendText.Get("rdpwrap.notLoaded"); - if (!st.Allowed) return BackendText.Get("rdpwrap.singleSession"); - if (!IsRdpTcpListening()) return BackendText.Get("rdpwrap.rdpTcpNotListening"); + if (st.Pending) return "notLoaded"; + if (!st.Allowed) return "singleSession"; + if (!IsRdpTcpListening()) return "rdpTcpNotListening"; return null; } + // ── RemoteIdd quitado: motivo para el panel y el diagnóstico ───────────── + + private static string ProgramDataFile(string name) => + Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), "OpenStreamMS", name); + + /// + /// Lo deja el arranque al quitar RemoteIdd de RDP-Tcp. Sin él, después del reinicio el panel + /// vería RemoteIdd sin más, como si nunca se hubiera instalado. + /// + private static string RemoteIddOffFile => ProgramDataFile("remoteidd-off.json"); + + /// + /// Texto para el usuario y el log: qué pasa, por qué y cuándo se vuelve a probar. En una + /// petición del panel, en su idioma; en el arranque, en el de Windows. + /// + public static string RemoteIddOffText(string reason) => + RequestCulture.T("rdpwrap.remoteIddOff", RequestCulture.T("rdpwrap." + reason)); + + /// + /// Motivo por el que se quitó RemoteIdd, si sigue instalado y fuera de RDP-Tcp; null si está + /// puesto (se está probando otra vez o funciona), desinstalado o nunca se quitó. + /// + public static string? RemoteIddOffReason() => + ReadRemoteIddOff(RemoteIddOffFile, ProgramDataFile("remoteidd-install.json"), IsRemoteIddActive()); + + internal static string? ReadRemoteIddOff(string offFile, string installState, bool remoteIddActive) + { + if (remoteIddActive || !File.Exists(installState)) return null; + try + { + using var doc = System.Text.Json.JsonDocument.Parse(File.ReadAllText(offFile)); + return doc.RootElement.TryGetProperty("reason", out var r) && r.GetString() is { Length: > 0 } reason + ? reason : null; + } + catch { return null; } + } + + internal static void WriteRemoteIddOff(string offFile, string reason) + { + Directory.CreateDirectory(Path.GetDirectoryName(offFile)!); + File.WriteAllText(offFile, System.Text.Json.JsonSerializer.Serialize( + new { reason, when = DateTimeOffset.Now.ToString("o") })); + } + + private static void SaveRemoteIddOff(string reason) + { + try { WriteRemoteIddOff(RemoteIddOffFile, reason); } + catch (Exception ex) { Logger.Warning($"[MultiRdp] No se pudo guardar el motivo de quitar RemoteIdd: {ex.Message}"); } + } + + private static void ClearRemoteIddOff() + { + try { File.Delete(RemoteIddOffFile); } catch { } + } + private static bool IsRdpTcpListening() { int port = 3389; diff --git a/tests/OpenStreamMS.Tests/RemoteIddOffTests.cs b/tests/OpenStreamMS.Tests/RemoteIddOffTests.cs new file mode 100644 index 0000000..4d3680a --- /dev/null +++ b/tests/OpenStreamMS.Tests/RemoteIddOffTests.cs @@ -0,0 +1,73 @@ +using OpenStreamMS.Services.Localization; +using OpenStreamMS.Services.Session; +using Xunit; + +namespace OpenStreamMS.Tests; + +/// +/// Si el arranque quita RemoteIdd de RDP-Tcp (RDP-Tcp no escucha con su proveedor: en Windows +/// cliente, lo que permite varias sesiones no deja cargar proveedores que no son de Microsoft, +/// issue #80), el panel y el diagnóstico tienen que poder decir por qué después de reiniciar. +/// +public sealed class RemoteIddOffTests : IDisposable +{ + private readonly string _dir = Path.Combine(Path.GetTempPath(), "osms-riddoff-" + Guid.NewGuid().ToString("N")); + private string Off => Path.Combine(_dir, "remoteidd-off.json"); + private string Install => Path.Combine(_dir, "remoteidd-install.json"); + + public RemoteIddOffTests() + { + Directory.CreateDirectory(_dir); + File.WriteAllText(Install, "{}"); + } + + public void Dispose() { try { Directory.Delete(_dir, true); } catch (IOException) { } } + + [Fact] + public void ReasonIsReadBackWhileRemoteIddIsOutOfRdpTcp() + { + RdpWrapperManager.WriteRemoteIddOff(Off, "rdpTcpNotListening"); + Assert.Equal("rdpTcpNotListening", RdpWrapperManager.ReadRemoteIddOff(Off, Install, remoteIddActive: false)); + } + + [Fact] + public void NoReasonWhenRemoteIddIsBackInRdpTcp() + { + // Una actualización lo reinstala: se está probando otra vez, no está desactivado. + RdpWrapperManager.WriteRemoteIddOff(Off, "rdpTcpNotListening"); + Assert.Null(RdpWrapperManager.ReadRemoteIddOff(Off, Install, remoteIddActive: true)); + } + + [Fact] + public void NoReasonWhenRemoteIddIsUninstalled() + { + RdpWrapperManager.WriteRemoteIddOff(Off, "rdpTcpNotListening"); + File.Delete(Install); + Assert.Null(RdpWrapperManager.ReadRemoteIddOff(Off, Install, remoteIddActive: false)); + } + + [Fact] + public void NoReasonWithoutFileOrWithBrokenFile() + { + Assert.Null(RdpWrapperManager.ReadRemoteIddOff(Off, Install, remoteIddActive: false)); + File.WriteAllText(Off, "{not json"); + Assert.Null(RdpWrapperManager.ReadRemoteIddOff(Off, Install, remoteIddActive: false)); + } + + [Theory] + [InlineData("rdpTcpNotListening")] + [InlineData("notLoaded")] + [InlineData("singleSession")] + public void EveryReasonHasTextInThePanelLanguage(string reason) + { + foreach (var lang in new[] { "en", "es", "zh", "zh_TW", "pt_BR", "de", "ja" }) + { + using var _ = RequestCulture.Set(lang); + var reasonText = BackendText.GetForCulture(lang, "rdpwrap." + reason); + var text = RdpWrapperManager.RemoteIddOffText(reason); + Assert.DoesNotContain("rdpwrap.", text); + Assert.Contains(reasonText, text); + Assert.Equal(BackendText.GetForCulture(lang, "rdpwrap.remoteIddOff", reasonText), text); + } + } +}