mirror of
https://github.com/kasmtech/workspaces-core-images.git
synced 2025-06-25 14:31:30 +02:00
KASM-6008 Ensure Zink starts, when KASM_EGL_CARD is defined
NVidia needs KASM_EGL_CARD to work with Zink.
This commit is contained in:
parent
716729e652
commit
f3f95d0a6e
@ -195,12 +195,12 @@ function start_kasmvnc (){
|
||||
function start_window_manager (){
|
||||
echo -e "\n------------------ Xfce4 window manager startup------------------"
|
||||
if [ "${START_XFCE4}" == "1" ] || [ "${START_DE}" == "xfce4-session" ]; then
|
||||
if [ -f /opt/VirtualGL/bin/vglrun ] && [ ! -z "${KASM_EGL_CARD}" ] && [ ! -z "${KASM_RENDERD}" ] && [ -O "${KASM_RENDERD}" ] && [ -O "${KASM_EGL_CARD}" ] ; then
|
||||
echo "Starting XFCE with VirtualGL using EGL device ${KASM_EGL_CARD}"
|
||||
DISPLAY=:1 /opt/VirtualGL/bin/vglrun -d "${KASM_EGL_CARD}" /usr/bin/startxfce4 --replace &
|
||||
elif [ -n "$KASM_ENABLE_ZINK" ]; then
|
||||
if [ -n "$KASM_ENABLE_ZINK" ] && [ -n "$KASM_DRI_CARD" ] && [ -n "$KASM_DRI_RENDERD" ]; then
|
||||
echo "Starting XFCE with Zink"
|
||||
LIBGL_KOPPER_DRI2=1 MESA_LOADER_DRIVER_OVERRIDE=zink GALLIUM_DRIVER=zink DISPLAY=:1 /usr/bin/startxfce4 --replace &
|
||||
elif [ -f /opt/VirtualGL/bin/vglrun ] && [ ! -z "${KASM_EGL_CARD}" ] && [ ! -z "${KASM_RENDERD}" ] && [ -O "${KASM_RENDERD}" ] && [ -O "${KASM_EGL_CARD}" ] ; then
|
||||
echo "Starting XFCE with VirtualGL using EGL device ${KASM_EGL_CARD}"
|
||||
DISPLAY=:1 /opt/VirtualGL/bin/vglrun -d "${KASM_EGL_CARD}" /usr/bin/startxfce4 --replace &
|
||||
else
|
||||
echo "Starting XFCE"
|
||||
DISPLAY=:1 /usr/bin/startxfce4 --replace &
|
||||
|
Loading…
x
Reference in New Issue
Block a user