mirror of
https://github.com/bleackstorm/SteamFrame-FPV-Control-Center.git
synced 2026-12-03 07:31:57 +01:00
fix(safety,openxr,dvr,config): harden RC/firmware failsafes, OpenXR lifecycle, DVR StreamCopy, relay & persistent config
This commit is contained in:
1 parent
8028680f07
commit
d82a65d9e6
24 files changed
+2246
-638
No files matched your search
@@ -1,22 +1,30 @@
|
||||
#!/usr/bin/env bash
|
||||
# SteamFrame FPV Launcher
|
||||
set -e
|
||||
set -euo pipefail
|
||||
|
||||
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
|
||||
cd "$DIR"
|
||||
|
||||
# S'assurer que cargo est dans PATH même sous session non-login (SteamOS / raccourci bureau)
|
||||
if [ -d "$HOME/.cargo/bin" ]; then
|
||||
export PATH="$HOME/.cargo/bin:$PATH"
|
||||
fi
|
||||
|
||||
# Vérifier les dépendances locales de linkage (libxkbcommon-x11)
|
||||
mkdir -p "$HOME/.local/lib"
|
||||
if [ ! -f "$HOME/.local/lib/libxkbcommon-x11.so" ]; then
|
||||
if [ -f "/usr/lib/x86_64-linux-gnu/libxkbcommon-x11.so.0" ]; then
|
||||
ln -sf /usr/lib/x86_64-linux-gnu/libxkbcommon-x11.so.0 "$HOME/.local/lib/libxkbcommon-x11.so"
|
||||
elif [ -f "/usr/lib/libxkbcommon-x11.so.0" ]; then
|
||||
ln -sf /usr/lib/libxkbcommon-x11.so.0 "$HOME/.local/lib/libxkbcommon-x11.so"
|
||||
elif [ -f "/usr/lib/libxkbcommon-x11.so" ]; then
|
||||
ln -sf /usr/lib/libxkbcommon-x11.so "$HOME/.local/lib/libxkbcommon-x11.so"
|
||||
fi
|
||||
for candidate in \
|
||||
"/usr/lib/x86_64-linux-gnu/libxkbcommon-x11.so.0" \
|
||||
"/usr/lib/aarch64-linux-gnu/libxkbcommon-x11.so.0" \
|
||||
"/usr/lib/libxkbcommon-x11.so.0" \
|
||||
"/usr/lib/libxkbcommon-x11.so"; do
|
||||
if [ -f "$candidate" ]; then
|
||||
ln -sf "$candidate" "$HOME/.local/lib/libxkbcommon-x11.so"
|
||||
break
|
||||
fi
|
||||
done
|
||||
fi
|
||||
export LD_LIBRARY_PATH="$HOME/.local/lib:${LD_LIBRARY_PATH:-}"
|
||||
export LD_LIBRARY_PATH="$HOME/.local/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
|
||||
|
||||
# Vérifier si le binaire release existe, sinon le compiler
|
||||
if [ ! -f "$DIR/target/release/steamframe-fpv" ]; then
|
||||
|
||||
Reference in new issue
Block a user