components-archive/archive_later/fs-uae/component_launcher.sh

18 lines
614 B
Bash
Raw Normal View History

2026-09-06 10:46:06 +00:00
#!/bin/bash
HOME=/var/data/fs-uae
# 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)"
export LD_LIBRARY_PATH="$component_path/lib:$rd_shared_libs:${DEFAULT_LD_LIBRARY_PATH}"
log i "RetroDECK is now launching $component_name"
log d "Library path is: $LD_LIBRARY_PATH"
log d "QT plugin path is: $QT_PLUGIN_PATH"
log d "QT QPA PLATFORM plugin path is: $QT_QPA_PLATFORM_PLUGIN_PATH"
# Launch
exec "$component_path/bin/fs-uae" --base-dir=/var/data/fs-uae/ "$@"