~qtjambi-community/ubuntu/oneiric/qtjambi-snapshot/debian

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
# Xnest starter script

# obtain ant pid for /tmp file
# ANT_PID=$(pidof java);

function start () {
	Xvfb -ac :66 & export DISPLAY=:66.0
	TMP_PID=$(jobs -p %);
	echo "$TMP_PID";
}

XVFB_PID=$(start)
echo $XVFB_PID > /tmp/qtjambi_ant_xvfb.tmp
echo "Xvfb started..."