forked from screenpipe/screenpipe
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlinux_integration.sh
More file actions
executable file
·55 lines (41 loc) · 1.3 KB
/
Copy pathlinux_integration.sh
File metadata and controls
executable file
·55 lines (41 loc) · 1.3 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/bash
log() {
echo -e "\e[1;34m[INFO]\e[0m $1"
}
export XDG_SESSION_TYPE="x11"
export WAYLAND_DISPLAY=""
# Change directory to Screenpipe folder
cd /workspaces/screenpipe/
log "Installing dependencies"
.github/scripts/install_dependencies.sh
log "Verifying Tesseract installation"
.github/scripts/verify_tesseract.sh
log "Building CLI"
cargo build --release
log "Setting up virtual display with window manager"
Xvfb :99 -ac -screen 0 1280x1024x24 &
sleep 3
export DISPLAY=:99
mkdir -p ~/.config/openbox
echo '<openbox_config><menu><file>menu.xml</file></menu></openbox_config>' > ~/.config/openbox/rc.xml
openbox --config-file ~/.config/openbox/rc.xml &
sleep 3
xterm -fa 'Liberation Mono' -fs 10 -e "while true; do echo 'Keeping xterm open'; sleep 60; done" &
sleep 3
xdpyinfo || echo "xdpyinfo failed"
xrandr || echo "xrandr failed"
xwininfo -root -children || echo "xwininfo failed"
log "Setting up audio"
.github/scripts/setup_audio.sh
log "Running Screenpipe"
.github/scripts/run_screenpipe.sh
log "Testing OCR"
.github/scripts/test_ocr.sh
log "Testing Audio Capture"
.github/scripts/test_audio_capture.sh
log "Stopping Screenpipe"
.github/scripts/stop_screenpipe.sh
log "Checking for crashes and expected behavior"
.github/scripts/check_logs.sh
log "Checking final storage usage"
du -ha ~/.screenpipe/data