1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
#preexec export XSECURELOCK_NO_COMPOSITE=1
# Assert that xsecurelock is running, and saving the screen.
search --name background
search --name saver
sleep 1
search --name saver_multiplex_screen
# Press a key.
search --maxdepth 0 ''
type '
'
sleep 2
# Assert that xsecurelock is running but no longer saving the screen.
search --name background
search --name saver
exec --sync /bin/sh -c '! xdotool search --name saver_multiplex_screen exec --sync xwininfo -root -tree'
# Enter the password.
search --maxdepth 0 ''
type '*******
'
sleep 2
# Assert that xsecurelock is saving the screen again.
search --name saver_multiplex_screen
# Press a key.
search --maxdepth 0 ''
type '
'
sleep 2
# Enter the password for real.
search --maxdepth 0 ''
type 'hunter2
'
sleep 2
# Assert that xsecurelock is now gone.
exec --sync /bin/sh -c '! xdotool search --name background exec echo fail'
|