The current supervisor.d configs are configured specifically for a particular supervisor version / installation. This decouples the configuration so we can use it on any distro.
31 lines
1.2 KiB
Bash
31 lines
1.2 KiB
Bash
#!/usr/bin/env bash
|
|
###
|
|
# File: start-xorg.sh
|
|
# Project: bin
|
|
# File Created: Tuesday, 11th January 2022 8:28:52 pm
|
|
# Author: Josh.5 (jsunnex@gmail.com)
|
|
# -----
|
|
# Last Modified: Monday, 24th January 2022 6:01:38 pm
|
|
# Modified By: Console and webGui login account (jsunnex@gmail.com)
|
|
###
|
|
|
|
DISPLAY=${DISPLAY:-:55}
|
|
DISPLAY_DPI=${DPI:-:96}
|
|
XDG_RUNTIME_DIR=/run/user/$(id -u ${USER})
|
|
|
|
|
|
# Clear out old lock files
|
|
display_file=/tmp/.X11-unix/X${DISPLAY#:}
|
|
if [ -S ${display_file} ]; then
|
|
LOG "Removing ${display_file} before starting"
|
|
rm -f /tmp/.X${DISPLAY#:}-lock
|
|
rm ${display_file}
|
|
fi
|
|
|
|
|
|
/usr/bin/Xorg -ac -noreset -novtswitch -sharevts -dpi "${DISPLAY_DPI}" +extension "GLX" +extension "RANDR" +extension "RENDER" vt7 "${DISPLAY}"
|
|
# /usr/bin/Xorg -ac -noreset -novtswitch -sharevts -dpi "${DISPLAY_DPI}" +extension "GLX" +extension "RANDR" +extension "RENDER" +extension "MIT-SHM" vt7 "${DISPLAY}"
|
|
# /usr/bin/Xorg -novtswitch -sharevts -dpi "${DISPLAY_DPI}" +extension "MIT-SHM" vt7 ${DISPLAY}
|
|
# /usr/bin/Xorg -novtswitch -sharevts -dpi "${DISPLAY_DPI}" +extension "MIT-SHM" "${DISPLAY}"
|
|
# /usr/bin/Xorg -ac -noreset +extension GLX +extension RANDR +extension RENDER vt7 "${DISPLAY}"
|