mirror of
https://github.com/kasmtech/workspaces-core-images.git
synced 2024-11-07 08:04:06 +01:00
KASM-2184 multi-gpu support
This commit is contained in:
parent
ef2669d4fc
commit
287a7a0d5d
@ -5,9 +5,9 @@ echo -e "\n------------------ Xfce4 window manager startup------------------"
|
|||||||
|
|
||||||
if [ "${START_XFCE4}" == "1" ] ;
|
if [ "${START_XFCE4}" == "1" ] ;
|
||||||
then
|
then
|
||||||
if [ -f /usr/bin/vglrun ] && [ -d /dev/dri ] && [ -O /dev/dri/card0 ] && [ -O /dev/dri/renderD128 ] ; then
|
if [ -f /usr/bin/vglrun ] && [ ! -z "${KASM_EGL_CARD}" ] && [ ! -z "${KASM_RENDERD}" ] && [ -O "${KASM_RENDERD}" ] && [ -O "${KASM_EGL_CARD}" ] ; then
|
||||||
echo "Starting XFCE with VirtualGL"
|
echo "Starting XFCE with VirtualGL"
|
||||||
DISPLAY=:1 /usr/bin/vglrun -d /dev/dri/card0 /usr/bin/startxfce4 --replace &
|
DISPLAY=:1 /usr/bin/vglrun -d "${KASM_EGL_CARD}" /usr/bin/startxfce4 --replace &
|
||||||
else
|
else
|
||||||
echo "Starting XFCE"
|
echo "Starting XFCE"
|
||||||
/usr/bin/startxfce4 --replace &
|
/usr/bin/startxfce4 --replace &
|
||||||
|
Loading…
Reference in New Issue
Block a user