Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WSL/WSLg interoperability sometimes doesn't run correctly #139

Open
dcharlespyle opened this issue Jun 27, 2021 · 0 comments
Open

WSL/WSLg interoperability sometimes doesn't run correctly #139

dcharlespyle opened this issue Jun 27, 2021 · 0 comments

Comments

@dcharlespyle
Copy link

dcharlespyle commented Jun 27, 2021

On some sign-ons, WSL throws an error: "/bin/bash: /usr/bin/start-wsl-services: No such file of directory."

image

This, of course, involves a script I placed in WSL to run a few services on startup. Normally, this script runs just fine and starts services such as CUPS (so that I can print from Linux apps when desired), DBus system instance (so I can use the Trash in nautilus as well as some other apps that don't run correctly without a running system DBus session), and so forth. I understand that issues with my own script are not something for Microsoft to deal with (generally, until the last few updates, the script ran flawlessly) but the underlying issue is with interoperability of WSL and WSLg. When this error is generated, any BASH prompt opened while it is happening displays wslg [ ~ ]$ and no WSL GUI program will run. Some command line programs also won't run, either.

image
image

Sudo password is not accepted as per usual. Every single one of the programs showing in the above BASH session is installed in WSL, and properly configured. Sometimes, the problem will resolve itself. Sometimes it won't. Whenever this happens and it doesn't resolve itself, if I restart the LxssManager service WSL will terminate and then this problem vanishes, and WSL GUI programs will launch again, as well as other command line programs and scripts.

The following is what is expected to be seen when WSL and WSLg are running properly together on startup.
image
image

But when the BASH prompt is showing WSLg in the prompt, that is when the issues start. And they don't just involve my script used to launch Linux services.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant