-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnotes
More file actions
30 lines (20 loc) · 802 Bytes
/
notes
File metadata and controls
30 lines (20 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
If wsl is not working, try to kill the wsl service and restart it.
wsl.exe --shutdown
taskkill.exe /f /im wslservice.exe
wsl.exe --list
----------------------------------
Fix the x11 socket issue
To make this persistent (as systemd-tmpfiles-setup.service can clear /tmp on reboot), you might need to create a systemd service:
Create a file /etc/systemd/system/wslg-x11-link.service with the following content:
[Unit]
Description=Symlink /tmp/.X11-unix to /mnt/wslg/.X11-unix
After=systemd-tmpfiles-setup.service
[Service]
Type=oneshot
ExecStart=/bin/sh -c "rm -rf /tmp/.X11-unix && ln -s /mnt/wslg/.X11-unix /tmp/.X11-unix"
[Install]
WantedBy=sysinit.target
Enable and start the service:
Bash
sudo systemctl enable wslg-x11-link.service
sudo systemctl start wslg-x11-link.service