linuxOS_AP06/external/xserver/hw/xfree86/Xorg.sh.in
2025-06-03 12:28:32 +08:00

18 lines
359 B
Bash

#!/bin/sh
#
# Execute Xorg.wrap if it exists otherwise execute Xorg directly.
# This allows distros to put the suid wrapper in a separate package.
# Load environments
. /etc/profile
if [ -r ~/.xinitrc ]; then
. ~/.xinitrc
fi
basedir=@SUID_WRAPPER_DIR@
if [ -x "$basedir"/Xorg.wrap ]; then
exec "$basedir"/Xorg.wrap "$@"
else
exec "$basedir"/Xorg "$@"
fi