osic-stacks/wsl_start.ps1
2023-08-07 02:38:14 -04:00

11 lines
326 B
PowerShell

$imagename = Read-Host -Prompt 'Container image to initialize: '
$command = ("docker run -d " +
"-v /tmp/.X11-unix:/tmp/.X11-unix " +
"-v /mnt/wslg:/mnt/wsl " +
"-e WAYLAND_DISPLAY=`$WAYLAND_DISPLAY " +
"-e DISPLAY=`$DISPLAY " +
"-e XDG_RUNTIME_DIR=/mnt/wslg " +
$imagename)
wsl bash -ic $command