forked from libretro/Lakka-LibreELEC
ccac6853d9
* libglvnd: add back exception for L4T and Ayn * xorg-launch-helper: special case for odin * Odin: fix retroarch assets path
21 lines
774 B
Bash
Executable File
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
|
|
|