Update worker.sh
This commit is contained in:
1 parent
3bbcb5fcd1
commit
7d4c2a9952
1 file changed
+4
-2
+4
-2
@@ -122,13 +122,15 @@ if [ "$TERMINAL" == "false" ] ; then
|
||||
# sudo apt-get -y install scrot
|
||||
# scrot -b 'screenshot_$wx$h.jpg' # -u gives "X Error of failed request: BadDrawable (invalid Pixmap or Window parameter)"
|
||||
# mv screenshot_* database/$INPUTBASENAME/
|
||||
|
||||
# We could simulate X11 keyboard/mouse input with xdotool here if needed
|
||||
xdotool getactivewindow key alt+f4
|
||||
xdotool getactivewindow key shift+f1
|
||||
|
||||
# Works with Xvfb
|
||||
# sudo apt-get -y install x11-apps netpbm xdotool # We do this in .travis.yml
|
||||
xwd -id $(xdotool getactivewindow) -silent -display :0 | xwdtopnm | pnmtojpeg > database/$INPUTBASENAME/screenshot.jpg && echo "Snap!"
|
||||
|
||||
# We could simulate X11 keyboard/mouse input with xdotool here if needed
|
||||
|
||||
else
|
||||
echo "TODO: Make a screenshot of a terminal application"
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user