components-archive/archive_later/supermodel/component_launcher.sh
2026-09-01 16:56:07 +02:00

21 lines
538 B
Bash
Executable file

#!/bin/bash
source /app/libexec/launcher_functions.sh
# Wayland fix
WAYLAND_DISPLAY=""
# Setting component name and path based on the directory name
component_name="$(basename "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")")"
component_path="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd)"
# Set LD_LIBRARY_PATH
export LD_LIBRARY_PATH="$component_path/lib:${DEFAULT_LD_LIBRARY_PATH}"
log i "RetroDECK is now launching $component_name"
log d "Library path is: $LD_LIBRARY_PATH"
# Launch
exec "$component_path/bin/supermodel" "$@"