WSLg uses Remote Desktop Connections? #687
-
Hi, I found this strange correlated behaviour between WSLg applications and the
Another strange observation is about Docker Desktop. If I start Docker Desktop, there are 3 All these ghost Is it true that WSLg uses the |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
Yes. More details can be found in source code, see https://github.com/microsoft/wslg/blob/main/WSLGd/main.cpp.
Do not kill the mstsc process abruptly. It may cause issue with running WSL instance. In the https://github.com/microsoft/wslg/blob/main/WSLGd/ProcessMonitor.cpp file, LaunchProcess is called in a loop. Hence, that mstsc process is restarted automatically. |
Beta Was this translation helpful? Give feedback.
-
Would mstsc work for remote access? |
Beta Was this translation helpful? Give feedback.
-
The huge problem with the 3 that Docker starts is that they frequently get into a state where they steal the desktop focus every couple of minutes. |
Beta Was this translation helpful? Give feedback.
-
Ah... but I have since discovered that installed 2H22 of Windows 11 doesn't appear to bring all parts of WSL2 up to date. After going to https://aka.ms/wslstorepage and installing the latest bits from there, all the focus stealing issues seem to have stopped. |
Beta Was this translation helpful? Give feedback.
Yes. More details can be found in source code, see https://github.com/microsoft/wslg/blob/main/WSLGd/main.cpp.
/mnt/c/Windows/System32/mstsc.exe
is executed with LaunchProcess function.Do not kill the mstsc process abruptly. It may cause issue with running WSL instance. In the https://github.com/microsoft/wslg/blob/main/WSLGd/ProcessMonitor.cpp file, LaunchProcess is called in a loop. Hence, that mstsc process is restarted automatically.