Skip to content

Commit

Permalink
fix: relink the X11 socket into place if needed
Browse files Browse the repository at this point in the history
Fixes X11 applications on tmp-as-tmpfs setups.
  • Loading branch information
K900 committed Jan 29, 2023
1 parent 14273c1 commit bc2ee24
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/wsl-distro.nix
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ with lib; {

# Don't allow emergency mode, because we don't have a console.
enableEmergencyMode = false;

# Link the X11 socket into place. This is a no-op on a normal setup,
# but helps if /tmp is a tmpfs or mounted from some other location.
tmpfiles.rules = [ "L /tmp/.X11-unix - - - - /mnt/wslg/.X11-unix" ];
};

# Start a systemd user session when starting a command through runuser
Expand Down

0 comments on commit bc2ee24

Please sign in to comment.