-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart-app.sh
More file actions
executable file
·30 lines (25 loc) · 1021 Bytes
/
Copy pathstart-app.sh
File metadata and controls
executable file
·30 lines (25 loc) · 1021 Bytes
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
#!/usr/bin/env bash
# KAiOSSChat als installierte Desktop-App starten (Release-Binary).
# Wird vom .desktop-Starter aufgerufen — kein Terminal, kein cargo.
# Phase 0: laedt den KAiOSS-Stack (localhost:5174) und startet ihn bei Bedarf.
set -euo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")"
KAIOSS_DIR="${KAIOSS_DIR:-$HOME/Projekte/aktiv/KAiOSS}"
BIN="./src-tauri/target/release/kaiosschat"
if [ ! -x "$BIN" ]; then
notify-send "KAiOSSChat" "Binary fehlt — einmalig ./install-desktop.sh ausführen." 2>/dev/null || true
exit 1
fi
# KAiOSS-Stack sicherstellen (liefert /desktop-bubble)
if ! curl -s -o /dev/null http://127.0.0.1:5174/desktop-bubble; then
"$KAIOSS_DIR/start.sh" start
for _ in $(seq 1 30); do
curl -s -o /dev/null http://127.0.0.1:5174/desktop-bubble && break
sleep 1
done
fi
# Webkit-Renderfixes — identisch zu run.sh (llvmpipe, Compositing AN,
# sonst Resize-Blank-Bug; siehe run.sh-Kommentar)
export WEBKIT_DISABLE_DMABUF_RENDERER=1
export LIBGL_ALWAYS_SOFTWARE=1
exec "$BIN"