Created
February 5, 2014 03:23
-
-
Save daktak/8816959 to your computer and use it in GitHub Desktop.
Run a program in the X virtual frame buffer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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