From 85560b8126904b826a397252e3d16ba4d437a895 Mon Sep 17 00:00:00 2001 From: imonlinux <39863321+imonlinux@users.noreply.github.com> Date: Wed, 26 Nov 2025 19:53:38 -0800 Subject: [PATCH] Add tray script under the scripts folder. --- script/tray | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 script/tray diff --git a/script/tray b/script/tray new file mode 100644 index 0000000..bb36477 --- /dev/null +++ b/script/tray @@ -0,0 +1,17 @@ +#!/usr/bin/env bash +set -euo pipefail + +# Resolve repo root (one level up from this script) +ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" + +# Activate venv if present +if [[ -d "$ROOT_DIR/.venv" ]]; then + # shellcheck disable=SC1090 + source "$ROOT_DIR/.venv/bin/activate" +fi + +cd "$ROOT_DIR" + +# Run the tray client +exec python lva_tray_client.py "$@" +