osic-stacks/wsl_start.ps1

11 lines
326 B
PowerShell
Raw Normal View History

2023-08-07 06:38:14 +00:00
$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