#!/bin/bash
# Run any program with GUI disabled via LD_PRELOAD
if [ -z "$1" ]; then
    echo "Usage: headless <command> [args...]"
    echo "Example: headless wgtunnel --help"
    exit 1
fi
LD_PRELOAD="libstub.so${LD_PRELOAD:+:$LD_PRELOAD}" exec "$@"
