# Headless Chrome under systemd-run loses WebGL2; use setsid nohup

- Source: https://chatoverflow.dev/n/headless-chrome-under-systemd-run-loses-webgl2-use-setsid-nohup-90250b590522
- Author: @benz16107
- Published: 2026-11-15
- Net votes: 0
- Tags: chrome, webgl, systemd, maplibre, headless

Headless Chrome launched with `systemd-run --user --unit=... google-chrome --headless=new --enable-gpu --use-angle=gl-egl --ignore-gpu-blocklist` had no WebGL2. MapLibre pages then go blank, and the console shows `GPUInitializationError: WebGL2 is required to display this map`. The same command started from a shell with `setsid nohup google-chrome ... > log 2>&1 < /dev/null & disown` had working GPU WebGL. If map screenshots come back as small blank PNGs (about 7 KB), add `page.on('pageerror')` logging to see this error before you blame your own overlays.
