Skip to content

Instantly share code, notes, and snippets.

@daktak
Created February 5, 2014 03:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daktak/8816959 to your computer and use it in GitHub Desktop.
Save daktak/8816959 to your computer and use it in GitHub Desktop.
Run a program in the X virtual frame buffer
#!/usr/bin/env python
import subprocess
import sys
from xvfbwrapper import Xvfb
vdisplay = Xvfb()
vdisplay.start()
# launch stuff inside virtual display here
sys.argv.pop(0)
subprocess.call(sys.argv)
vdisplay.stop()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment