9 if test -x "$dir/$COMMAND" ; then
10 if test "x$OUTPUT" = "x" ; then
11 OUTPUT="$dir/$COMMAND"
20 echo "GDM Theme Tester"
22 echo "Be sure to test all the environments:"
23 echo " console, console-timed, flexi, remote-flexi, xdmcp"
24 echo "Also be sure to test using caps lock"
27 XNEST=`gdmwhich Xnest`
28 GDMXNEST=`gdmwhich gdmXnest`
29 GDMGREETER="@libexecdir@/gdmgreeter"
31 if [ x$XNEST = x ]; then
32 echo "ERROR: Xnest not found"
37 if [ x$GDMXNEST = x ]; then
38 echo "ERROR: gdmXnest not found"
43 if [ x$GDMGREETER = x ]; then
44 echo "ERROR: gdmgreeter not found"
50 Usage: $0 <environment> <theme>
51 <environment> is one of: console, console-timed, flexi, remote-flexi, xdmcp
52 <theme> is either the path of the theme or the name of an installed theme
54 If you set the environment variable XNESTSIZE to <width>x<height> (e.g. 800x600)
55 you can test the greeter at that resolution
57 if [ "$#" != 2 ]; then
63 DOING_GDM_DEVELOPMENT=yes
64 GDM_PARENT_DISPLAY="$DISPLAY"
65 export GDM_THEME DOING_GDM_DEVELOPMENT GDM_PARENT_DISPLAY
75 export GDM_IS_LOCAL GDM_FAKE_TIMED
80 export GDM_IS_LOCAL GDM_FLEXI_SERVER
84 export GDM_FLEXI_SERVER
94 if [ "x$XNESTSIZE" = x ] ; then
97 eval `gdmXnest -b -o "-geometry $XNESTSIZE"`
101 if [ "x$GDM_PARENT_DISPLAY" = "x$DISPLAY" ]; then
102 echo "ERROR: Can't start the Xnest server"
106 # This may not be necessary
109 @libexecdir@/gdmgreeter