mirror of
https://github.com/RetroDECK/components-archive.git
synced 2026-08-21 22:06:38 +00:00
22 lines
860 B
Bash
22 lines
860 B
Bash
|
|
#!/bin/bash
|
||
|
|
|
||
|
|
HOME=/var/config/lindbergh
|
||
|
|
|
||
|
|
# 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:$component_path/lib32:$component_path/lib32ID:$ffmpeg_path/25.08:$rd_shared_libs:${DEFAULT_LD_LIBRARY_PATH}"
|
||
|
|
export QT_PLUGIN_PATH="${QT_PLUGIN_PATH}"
|
||
|
|
export QT_QPA_PLATFORM_PLUGIN_PATH="${QT_QPA_PLATFORM_PLUGIN_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"
|
||
|
|
|
||
|
|
exec "$component_path/bin/lindbergh" -c /var/config/lindbergh/lindbergh.ini -o /var/config/lindbergh/controls.ini "$@"
|