Skip to content

Commit a520b15

Browse files
authored
Update worker.sh
1 parent f3df95e commit a520b15

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

code/worker.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,9 @@ APID=$!
103103
sleep 5
104104
# xpra screenshot database/$INPUTBASENAME/screenshot
105105
# screenshot is empty and has not been saved (maybe there are no windows or they are not currently shown)
106-
import -window root database/$INPUTBASENAME/screenshot.jpg # ImageMagick
106+
# import -window root database/$INPUTBASENAME/screenshot.jpg # ImageMagick
107+
sudo apt-get -y install scrot
108+
scrot -u -b database/$INPUTBASENAME/screenshot.jpg
107109
kill $APID && echo "SUCCESS" || exit 1
108110

109111
echo "==========================================="

0 commit comments

Comments
 (0)