Skip to content

Instantly share code, notes, and snippets.

@teemall
teemall / xvfb-run-safe.sh
Created December 19, 2025 20:30 — forked from volkovasystems/xvfb-run-safe.sh
xvfb-run-safe
#!/bin/bash
# allow settings to be updated via environment
: "${xvfb_lockdir:=$HOME/.xvfb-locks}"
: "${xvfb_display_min:=99}"
: "${xvfb_display_max:=599}"
mkdir -p -- "$xvfb_lockdir" || exit