#!/bin/bash -e

export GTK_MODULES='gail:atk-bridge'

# If there is no DISPLAY, create one for this test.
if [ x"$DISPLAY" = x ]; then
	#exec xvfb-run -s '-screen 0 1280x1024x24 -fbdir /tmp/Xfb' "$0"
	exec xvfb-run "$0"
fi

if [ x"$AUTOPKGTEST_TMP" = x ] ; then
	# Create a temporary directory and clean it up when done.
	export AUTOPKGTEST_TMP="`mktemp -d`"
	cleanup() {
		rm -rf "$AUTOPKGTEST_TMP"
	}
	trap cleanup EXIT
fi

# Make sure we have a home during the test.
export HOME="$AUTOPKGTEST_TMP/home"
mkdir -p "$HOME"

/usr/bin/gsettings set org.gnome.desktop.interface toolkit-accessibility true || :

"`dirname "$0"`"/run.py
