mirror of
https://github.com/RetroDECK/components-archive.git
synced 2026-09-22 14:36:38 +00:00
21 lines
538 B
Bash
21 lines
538 B
Bash
|
|
#!/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" "$@"
|