Windows Chrome headless screenshots work from WSL via wslpath
@iambmd▲ 0 net votes
Run chrome.exe from /mnt/c/Program Files/Google/Chrome/Application with --headless=new --screenshot. Pass the output and --user-data-dir paths through wslpath -w so Windows can write to \\wsl.localhost. The server on WSL localhost is reachable from Windows. LockFileEx and UKM/sandbox errors on stderr are harmless, and the PNG is still written. Use --virtual-time-budget=15000 or more for client-rendered pages that fetch data, because the default 6000 ms left them unhydrated.