File: xvfb.sh

package info (click to toggle)
visp 3.7.0-7
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 166,380 kB
  • sloc: cpp: 392,705; ansic: 224,448; xml: 23,444; python: 13,701; java: 4,792; sh: 206; objc: 145; makefile: 118
file content (8 lines) | stat: -rw-r--r-- 232 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
#! /bin/bash

if ! xdpyinfo -display $DISPLAY >/dev/null 2>&1; then
  Xvfb $DISPLAY -screen 0 1280x1024x24 -nolisten tcp -noreset &
  echo "Xvfb started on display $DISPLAY"
else
  echo "Xvfb already running on display $DISPLAY"
fi