Skip to content

Commit

Permalink
more fix again
Browse files Browse the repository at this point in the history
Signed-off-by: David Anyatonwu <[email protected]>
  • Loading branch information
onyedikachi-david committed Aug 26, 2024
1 parent e8278d9 commit 423c41e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,8 @@ jobs:
DISPLAY=:99 xwininfo -root -children
echo "Current processes:"
ps aux | grep -E 'Xvfb|xterm|screenpipe|simulate'
echo "Screenshot exists:"
ls -l /tmp/screenshot.png
done
echo "Health check failed after 4 minutes"
echo "Xvfb log:"
Expand Down
4 changes: 2 additions & 2 deletions scripts/launch_test_window.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

# Check if running on Ubuntu
if [[ "$(uname)" == "Linux" ]]; then
# Launch xterm with a visible window
xterm -geometry 80x24+100+100 -e "echo 'Test Window'; sleep 300" &
# Launch xterm with a visible window and some content
xterm -geometry 80x24+100+100 -e "echo 'Test Window'; while true; do date; sleep 1; done" &
fi
6 changes: 6 additions & 0 deletions scripts/simulate_screen_activity.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,16 @@ if [[ "$(uname)" == "Linux" ]]; then
xdotool key Return
}

# Function to capture screenshot
capture_screenshot() {
scrot -o /tmp/screenshot.png
}

# Main simulation loop
while true; do
simulate_mouse
simulate_typing
capture_screenshot
sleep 1
done
fi

0 comments on commit 423c41e

Please sign in to comment.