ab73399426
Co-authored-by: Cursor <cursoragent@cursor.com>
18 lines
601 B
Bash
Executable File
18 lines
601 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Orisys 通止规工位桌面程序(窗口,不是网页)。
|
|
#
|
|
# bash ~/ros2/scripts/run_console.sh
|
|
|
|
set -eo pipefail
|
|
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
# shellcheck disable=SC1091
|
|
source "${ROOT}/scripts/env.sh"
|
|
export PYTHONPATH="${ROOT}/src/arm_application${PYTHONPATH:+:${PYTHONPATH}}"
|
|
if [[ -z "${DISPLAY:-}" && -S /tmp/.X11-unix/X1 ]]; then
|
|
export DISPLAY=:1
|
|
fi
|
|
if [[ -z "${XAUTHORITY:-}" && -r "/run/user/$(id -u)/gdm/Xauthority" ]]; then
|
|
export XAUTHORITY="/run/user/$(id -u)/gdm/Xauthority"
|
|
fi
|
|
exec python3 -m arm_application.operator_app
|