0
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2025-01-07 12:38:21 +00:00
David Lawson ccac6853d9 More build fixes for odin (#1744)
* libglvnd: add back exception for L4T and Ayn

* xorg-launch-helper: special case for odin

* Odin: fix retroarch assets path
2023-01-21 17:15:38 +01:00

21 lines
774 B
Bash
Executable File

#!/bin/sh
XORG_CONF_USER="/storage/.config/xorg.conf"
XORG_CONF_USER_DRV="/storage/.config/xorg-${1}.conf"
XORG_CONF_DEFAULT="/etc/X11/xorg.conf"
XORG_CONF_DEFAULT_DRV="/etc/X11/xorg-${1}.conf"
XORG_ARGS="-s 0 -noreset -allowMouseOpenFail -logfile /storage/xorg.log"
# load user defined xorg.conf, if exist
if [ -f "${XORG_CONF_USER}" ]; then
XORG_ARGS="${XORG_ARGS} -config ${XORG_CONF_USER}"
elif [ -f "${XORG_CONF_USER_DRV}" ]; then
XORG_ARGS="${XORG_ARGS} -config ${XORG_CONF_USER_DRV}"
elif [ -f "${XORG_CONF_DEFAULT}" ]; then
XORG_ARGS="${XORG_ARGS} -config ${XORG_CONF_DEFAULT}"
elif [ -f "$XORG_CONF_DEFAULT_DRV" ]; then
XORG_ARGS="${XORG_ARGS} -config ${XORG_CONF_DEFAULT_DRV}"
fi
XORG_ARGS="${XORG_ARGS} -ignoreABI"
exec xorg-launch-helper $@ $XORG_ARGS