Skip to content

WSLg uses Remote Desktop Connections? #687

Answered by Biswa96
davidshen84 asked this question in Q&A
Discussion options

You must be logged in to vote

Is it true that WSLg uses the mstsc processes?

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.

If I kill the mstsc.exe process, my WSLg application got force restart as well.

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.

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by davidshen84
Comment options

You must be logged in to vote
1 reply
@Biswa96
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@GF-Huang
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants