File: xserver.rb

package info (click to toggle)
subtle 0.11.3224-xi-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,132 kB
  • sloc: ansic: 14,702; ruby: 3,101; makefile: 17; sh: 8
file content (22 lines) | stat: -rw-r--r-- 495 bytes parent folder | download | duplicates (4)
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