-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Bind mount
/tmp/.X11-unix
for newer version of WSL2 (#57)
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.
- Loading branch information
Showing
4 changed files
with
72 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
...r/resources/run/systemd/system/systemd-tmpfiles-clean.service.d/exclude_wslg_sockets.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# This file is part of Distrod. | ||
# | ||
# Do not edit this file directly. This file can be overwritten when Distrod is updated. | ||
# Instead, create /etc/systemd/system/systemd-tmpfiles-clean.service.d/exclude_wslg_sockets.conf, | ||
# systemd will load it. | ||
|
||
# avoid `/tmp/.X11-unix` to be cleaned up by systemd | ||
[Service] | ||
ExecStart= | ||
ExecStart=systemd-tmpfiles --clean --exclude-prefix=/tmp/.X11-unix |
10 changes: 10 additions & 0 deletions
10
...r/resources/run/systemd/system/systemd-tmpfiles-setup.service.d/exclude_wslg_sockets.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# This file is part of Distrod. | ||
# | ||
# Do not edit this file directly. This file can be overwritten when Distrod is updated. | ||
# Instead, create /etc/systemd/system/systemd-tmpfiles-setup.service.d/exclude_wslg_sockets.conf, | ||
# systemd will load it. | ||
|
||
# avoid `/tmp/.X11-unix` to be cleaned up by systemd | ||
[Service] | ||
ExecStart= | ||
ExecStart=systemd-tmpfiles --create --remove --boot --exclude-prefix=/dev --exclude-prefix=/tmp/.X11-unix |