-
Notifications
You must be signed in to change notification settings - Fork 822
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
guiApplications=false causes broken systemd environment #10818
Comments
Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! Open similar issues:
|
You're right, we shouldn't be doing this sytemd fixup logic if gui applications are disabled. I'll work on a fix. |
Should be fixed with https://github.com/microsoft/WSL/releases/tag/2.0.12. |
@benhillis I can confirm that Unfortunately, the problem with XDG_RUNTIME_DIR persists:
Some more details:
Logs during a failing log-in / boot:
Based on the |
@benhillis Can you please re-open? Or should I create a new issue? |
Even with WSL 2.0.14 (current stable) or 2.1.3.0 (current pre-release) /run/user/ is not created with
So will this issue be reopened or should we report another one? |
Windows Version
Microsoft Windows [Version 10.0.22621.2715]
WSL Version
2.0.9.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.133.1-1
Distro Version
Ubuntu-22.04
Other Software
No response
Repro Steps
.wslconfig
:Ubuntu-22.04
:Expected Behavior
The system should have a working XDG runtime directory:
Additionally, the system should have a proper X11-unix socket dir:
Actual Behavior
The system has a broken XDG runtime directory:
Additionally, the system has a missing /tmp/X11-unix direcotry:
Diagnostic Logs
The directory
/run/user
appears to be bind mounted from the distributions root filesystem:Moving
/mnt/wslg
out of the way, running wsl --shutdown and then re-entering wsl fixes this once. Without moving /mnt/wslg away, the issue returns on the next cycle.The missing X11-unix directory is caused by the presence of
/run/tmpfiles.d/x11.conf
, which might be a good idea for wslg mode, but not when that is disabled.Generally, it seems that at least some wslg-specific actions/mounts/system overrides are still active despite of the "guiApplications=false" setting.
The text was updated successfully, but these errors were encountered: