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
Bind mount /tmp/.X11-unix
for newer version of WSL2
#57
Bind mount /tmp/.X11-unix
for newer version of WSL2
#57
Conversation
c92d985
to
57f4528
Compare
are you sure you fixed it? it didn't work for me |
Hi, @herrwinfried, I'm now using it for myself (WSL0.60.0 and archwsl) and doesn't see any issue🤔 Could you please test opt_distrod.tar.gz to see if it works? |
yes this works on the openSUSE TW windows store download you mentioned, thanks. |
* bind-mount `/tmp/.X11-unix` for WSL after 0.60.0 * keep the symlink method for older WSL versions * modify `/run` mounts to avoid systemd to clean up `/tmp/.X11-unix` * override systemd-tmpfiles-{setup, clean}.service to exclude `/tmp/.X11-unix` * don't mount `x11.conf` if WSL>= 0.60.0, this avoid `systemd-tmpfiles --create` touching `/tmp/.X11-unix`
0605970
to
9274d49
Compare
I just noticed a bug: when I've fixed it and updated the opt tar pinned at the beginning. |
I tried the tarball and it gives the following error everytime i open wsl:
Maybe it's something with your compile environment? |
I'm using latest archlinux. |
I downloaded the latest edited and it works for me. Could it be a missing step for arch linux. @leoleoasd |
It looks like you directly extract the tarball to Remove the original And in case you can't open wsl shell, use |
That worked for me. Thanks! |
Seems like CI fails because no It looks ok when I ran tests on my WSL2 though. EDIT: Maybe we shouldn't do any bind mount if |
5311f8c
to
ed52715
Compare
Applied this fix, and it now can pass ci. |
Hi @Locietta ! I truly appreciate your contribution! And I'm sorry for my late response. 🙇♂️ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great to me. Thanks so much! I've add a little requests for improvements. I'd appreciate it if you could update it if you can.
* test for `/run/systemd/system/systemd-tmpfiles-setup.service.d` * remove symlink test
ed52715
to
b720706
Compare
I tried installing the latest release, and it doesn't seem to fix the issue? |
@dyharlan v0.1.7 looks good to me, could you check |
v0.1.7 gives me
Is there something with my installation? I just delete all files inside opt/distrod and replace it with opt_distrod.tar.gz |
disabling and re-enabling it after replacing the file fixes this issue. |
In my environment, |
Fix #56.
After WSL 0.60.0 release, microsoft switched to bind mount the
/tmp/.X11-unix
rather than symlink it as they previously do. This breaks wslg in Distrod for latest WSL on MS Store.Distrod should bind mount for WSL 0.60.0, and keep the symlink strategy for older versions of WSL.
I've tested the fix on WSL 0.60.0, WSL 0.58.3 and in-box WSL, all of them worked ok.
EDIT: Before this PR is merged, you may use opt tar packaged by me for a while 👉 opt_distrod.tar.gz