mirror of
https://github.com/yuzu-emu/AppImageKit-checkrt
synced 2024-11-23 16:53:45 +00:00
b9a00c30e2
Forces yuzu to use X11 even on Wayland hosts.
29 lines
654 B
Bash
Executable file
29 lines
654 B
Bash
Executable file
#!/bin/sh -e
|
|
|
|
# Force xcb platform for Qt applications
|
|
if [ -z "${QT_QPA_PLATFORM}" ]; then
|
|
export QT_QPA_PLATFORM=xcb
|
|
fi
|
|
|
|
# add your command to execute here
|
|
exec=
|
|
|
|
cd "$(dirname "$0")"
|
|
if [ "x$exec" = "x" ]; then
|
|
exec="$(sed -n 's|^Exec=||p' *.desktop | head -1)"
|
|
fi
|
|
if [ -x "./usr/optional/checkrt" ]; then
|
|
extra_libs="$(./usr/optional/checkrt)"
|
|
fi
|
|
if [ -n "$extra_libs" ]; then
|
|
export LD_LIBRARY_PATH="${extra_libs}${LD_LIBRARY_PATH}"
|
|
if [ -e "$PWD/usr/optional/exec.so" ]; then
|
|
export LD_PRELOAD="$PWD/usr/optional/exec.so:${LD_PRELOAD}"
|
|
fi
|
|
fi
|
|
|
|
#echo ">>>>> $LD_LIBRARY_PATH"
|
|
#echo ">>>>> $LD_PRELOAD"
|
|
|
|
./usr/bin/$exec "$*"
|
|
exit $?
|