2 ## PSPP - a program for statistical analysis.
3 ## Copyright (C) 2020 Free Software Foundation, Inc.
5 ## This program is free software: you can redistribute it and/or modify
6 ## it under the terms of the GNU General Public License as published by
7 ## the Free Software Foundation, either version 3 of the License, or
8 ## (at your option) any later version.
10 ## This program is distributed in the hope that it will be useful,
11 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 ## GNU General Public License for more details.
15 ## You should have received a copy of the GNU General Public License
16 ## along with this program. If not, see <http://www.gnu.org/licenses/>.
21 echo FAILED to grab image
for $payload
34 # Types the argument, with a pause after the first character.
37 xdotool
type "${1:0:1}"
44 while test $# -gt 0; do
47 topsrcdir
=${1/--topsrcdir=/}
50 application
=${1/--application=/}
53 xserver
=${1/--x-server=/}
56 payload
=${1/--payload=/}
77 mkdir
-p $HOME/.config
78 cat > $HOME/.config
/psppirerc
<<EOF
97 Xvfb
+extension XTEST \
98 -screen 0 "$width"x
"$height"x24 \
103 Xephyr
-screen "$width"x
"$height" \
112 printf "Unknown X server type\n";
117 export DISPLAY
=$display
118 export GTK_THEME
=$theme
123 $application -q -n 2> $errfile &
124 if test "$xserver"x
= "native"x
; then pid
=$
!; fi
127 if test $?
-ne 0 ; then fail
; fi
132 mv $output,tmp
$output