Skip to content

Commit 076f4f7

Browse files
authored
Update worker.sh
[ci skip]
1 parent 4670820 commit 076f4f7

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

code/worker.sh

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,18 @@ echo "==========================================="
100100

101101
firejail --noprofile --appimage ./"$FILENAME" &
102102
APID=$!
103-
sleep 5
104-
# xpra screenshot database/$INPUTBASENAME/screenshot
103+
sleep 7
104+
105+
xpra screenshot database/$INPUTBASENAME/screenshot
106+
107+
# results in grey screenshot
105108
# screenshot is empty and has not been saved (maybe there are no windows or they are not currently shown)
106109
# import -window root database/$INPUTBASENAME/screenshot.jpg # ImageMagick
107-
sudo apt-get -y install scrot
108-
scrot -u -b database/$INPUTBASENAME/screenshot.jpg
109-
kill $APID && echo "SUCCESS" || exit 1
110+
111+
# results in grey screenshot, too
112+
# sudo apt-get -y install scrot
113+
# scrot -u -b database/$INPUTBASENAME/screenshot.jpg
114+
# kill $APID && echo "SUCCESS" || exit 1
110115

111116
echo "==========================================="
112117

0 commit comments

Comments
 (0)