Datasets:
Download ubuntu/kde-labplot/reference/launch.sh from Qwen/RecreationBench: direct link, hf CLI and curl.
- Browser
- Download file 1.45 kB
-
https://huggingface.co/datasets/Qwen/RecreationBench/resolve/main/ubuntu/kde-labplot/reference/launch.sh
- Command line
-
hf download hf://datasets/Qwen/RecreationBench/ubuntu/kde-labplot/reference/launch.sh
-
curl -L -o launch.sh https://huggingface.co/datasets/Qwen/RecreationBench/resolve/main/ubuntu/kde-labplot/reference/launch.sh
1.45 kB
| # Launch script for LabPlot (Qt5/KF5 native desktop application) | |
| # Self-contained: sets all runtime env and execs the installed binary. | |
| set -e | |
| INSTALL_PREFIX="/workspace/install" | |
| BIN="$INSTALL_PREFIX/bin/labplot2" | |
| # --- Display --- | |
| # Use the pipeline-managed display as-is. | |
| export DISPLAY="${DISPLAY:-:0}" | |
| # --- Data / resource discovery --- | |
| # The app is installed to a non-standard prefix, so make sure Qt/KF5 and | |
| # freedesktop machinery can find its data, icons, mime, appdata, etc. | |
| export XDG_DATA_DIRS="$INSTALL_PREFIX/share:${XDG_DATA_DIRS:-/usr/local/share:/usr/share}" | |
| # Writable runtime/config/cache dirs (fall back for unprivileged users). | |
| export XDG_RUNTIME_DIR="${XDG_RUNTIME_DIR:-$(mktemp -d)}" | |
| export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}" | |
| export XDG_CACHE_HOME="${XDG_CACHE_HOME:-$HOME/.cache}" | |
| mkdir -p "$XDG_CONFIG_HOME" "$XDG_CACHE_HOME" 2>/dev/null || true | |
| # --- Library path --- | |
| export LD_LIBRARY_PATH="$INSTALL_PREFIX/lib:$INSTALL_PREFIX/lib/x86_64-linux-gnu:${LD_LIBRARY_PATH}" | |
| # --- Qt plugin path (system Qt5 plugins) --- | |
| for qtplug in /usr/lib/x86_64-linux-gnu/qt5/plugins /usr/lib/qt5/plugins; do | |
| [ -d "$qtplug" ] && export QT_PLUGIN_PATH="$qtplug:${QT_PLUGIN_PATH}" | |
| done | |
| # Native GTK/Qt apps expose AT-SPI via the ATK/Qt bridge on the shared session | |
| # bus. Do NOT disable the a11y bridge; join the existing session bus. | |
| export NO_AT_BRIDGE=0 | |
| export QT_ACCESSIBILITY=1 | |
| exec "$BIN" "$@" | |