1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
#!/usr/bin/ruby
#
# @package test
#
# @file Start Xvfb server
# @author Christoph Kappel <unexist@subforge.org>
# @version $Id: test/xserver.rb,v 3074 2011/10/07 19:26:51 unexist $
#
# This program can be distributed under the terms of the GNU GPLv2.
# See the file COPYING for details.
#
require "mkmf"
# Find Xvfb
if((xvfb = find_executable0("Xvfb")).nil?)
raise "Xvfb not found in path"
end
system("#{xvfb} :10 -screen 0 1024x768x16 -I &> /dev/null")
# vim:ts=2:bs=2:sw=2:et:fdm=marker
|