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 "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"