-
-
Notifications
You must be signed in to change notification settings - Fork 203
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
Wayland socket is missing when Systemd enabled #357
Comments
So Wayland does not work, right? If it works, what is |
The root cause is Arch mounts Disable $ cat /etc/tmpfiles.d/wslg.conf
# See tmpfiles.d(5) for details
# link WSLg display files after system started
# Type Path Mode UID GID Age Argument
L+ /tmp/.X11-unix/X0 - - - - /mnt/wslg/.X11-unix/X0 I have no idea how to disable mounting $ cat ~/.config/user-tmpfiles.d/wslg.conf
# Type Path Mode UID GID Age Argument
L+ %t/wayland-0 - - - - /mnt/wslg/runtime-dir/wayland-0
L+ %t/wayland-0.lock - - - - /mnt/wslg/runtime-dir/wayland-0.lock
L+ %t/pulse/native - - - - /mnt/wslg/runtime-dir/pulse/native
L+ %t/pulse/pid - - - - /mnt/wslg/runtime-dir/pulse/pid
L+ %t/dbus-1 - - - - /mnt/wslg/runtime-dir/dbus-1
$ systemctl --user enable systemd-tmpfiles-setup.service systemd-tmpfiles-clean.timer |
Does Add: I added the content that links files in |
|
Well, I think 4 should work, because my |
We'd better use %t as XDG_RUNTIME_DIR
|
I've tried this, but it did not work in my |
Well, I added As for your |
I guess that your User's XDG_RUNTIME_DIR is not done , when |
Maybe. BTW, do you know how to start your |
|
It works! Thank you so much! |
tanks this worked, I would like to ask permission to create a gist script for this |
Did you ever create a gist script for this? Thanks! |
IMPORTANT
Please read README and Docs before creating the issue.
Please fill out the below information:
Describe the issue
When Systemd on my subsystem started working by accident, I found that all my GUI apps can only be opened via X11. Then I found that there was no
wayland-0
in/run/user/1000
. I do not know why the socket was gone, but it seems to be related to Systemd. Though I wrote a script as an alternative workaround, the problem has not been really solved. Wayland socket exists in Ubuntu WSL with Systemd running, so it does not seem to be an issue of WSL.To Reproduce
Just try to make Systemd work
Expected behavior
Wayland socket exists, and GUI apps can use it.
Screenshots
If applicable, add screenshots to help explain your problem.
Enviroment:
Additional context
%USERPROFILE%\.wslconfig
according to #356 to disable cgroups v1, but it did not work. Then I found another article and modified.wslconfig
according to it, and it worked. I renamed.wslconfig
to.wslconfig1
without modifying it to enable cgroups v1, and Systemd was also working somehow. But when I tried to rename.wslconfig1
back without modifying it to disable cgroups v1, backup the origionalext4.vhdx
, unregister ArchWSL, and then re-install it with a newext4.vhdx
, Systemd did not work. So I actually have no idea about how to make Systemd work./mnt/wslg
to/run/user/$UID
at startup, as an alternative workaround. Copy the content below and paste it to/etc/systemd/system/[email protected]/link.conf
to "solve" the problem:The text was updated successfully, but these errors were encountered: