From 49bc272461f9e9ceff7feef73a7e047e337620c7 Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Wed, 27 May 2026 18:55:14 +0200 Subject: [PATCH] client/install.sh: install we_monitor_gui command to ~/.local/bin Co-Authored-By: Claude Sonnet 4.6 --- client/install.sh | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/client/install.sh b/client/install.sh index 27c0a3b..0087c89 100755 --- a/client/install.sh +++ b/client/install.sh @@ -54,6 +54,21 @@ EOF chmod +x "$LAUNCHER" echo "==> Launcher written : $LAUNCHER" +# ── 3. system command ───────────────────────────────────────────────────────── +BIN_DIR="$HOME/.local/bin" +CMD="$BIN_DIR/we_monitor_gui" +mkdir -p "$BIN_DIR" +cat > "$CMD" < System command : $CMD" +if [[ ":$PATH:" != *":$BIN_DIR:"* ]]; then + echo " Note: $BIN_DIR is not in your PATH." + echo " Add to ~/.bashrc or ~/.profile: export PATH=\"\$HOME/.local/bin:\$PATH\"" +fi + echo "" echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━" if $IS_UPDATE; then @@ -62,6 +77,6 @@ else echo " Installation complete." echo "" echo " Start the GUI:" - echo " $LAUNCHER" + echo " we_monitor_gui" fi echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"