Skip to content

Instantly share code, notes, and snippets.

View xtenduke's full-sized avatar

Jake Laurie xtenduke

View GitHub Profile
@cerebrate
cerebrate / tmp-.X11\x2dunix.mount
Created September 26, 2022 18:44
Bind mount solution for restoring WSLg under systemd
# /lib/systemd/system/tmp-.X11\x2dunix.mount
[Unit]
Description=WSLg Remount Service
DefaultDependencies=no
After=systemd-tmpfiles-setup.service
Before=sysinit.target
ConditionPathExists=/tmp/.X11-unix
ConditionPathIsMountPoint=!/tmp/.X11-unix
ConditionPathExists=/mnt/wslg/.X11-unix