Merge branch 'feature/KASM-6444-fix-retroarch' into 'develop'

KASM-6444 update pathing for retroarch init

See merge request kasm-technologies/internal/workspaces-images!195
This commit is contained in:
Justin Travis 2024-09-13 17:58:31 +00:00
commit c6189fe8c7

View File

@ -23,15 +23,15 @@ rm -f assets.zip info.zip
chown -R 1000:1000 $HOME/.config/retroarch chown -R 1000:1000 $HOME/.config/retroarch
# Wrap with VGL # Wrap with VGL
rm /usr/bin/retroarch mv /usr/bin/retroarch /usr/bin/retroarch-real
cat >/usr/bin/retroarch <<EOL cat >/usr/bin/retroarch <<EOL
#!/usr/bin/env bash #!/usr/bin/env bash
if [ -f /opt/VirtualGL/bin/vglrun ] && [ ! -z "\${KASM_EGL_CARD}" ] && [ ! -z "\${KASM_RENDERD}" ] && [ -O "\${KASM_RENDERD}" ] && [ -O "\${KASM_EGL_CARD}" ] ; then if [ -f /opt/VirtualGL/bin/vglrun ] && [ ! -z "\${KASM_EGL_CARD}" ] && [ ! -z "\${KASM_RENDERD}" ] && [ -O "\${KASM_RENDERD}" ] && [ -O "\${KASM_EGL_CARD}" ] ; then
echo "Starting Retroarch with GPU Acceleration on EGL device \${KASM_EGL_CARD}" echo "Starting Retroarch with GPU Acceleration on EGL device \${KASM_EGL_CARD}"
vglrun -d "\${KASM_EGL_CARD}" /usr/games/retroarch "\$@" vglrun -d "\${KASM_EGL_CARD}" /usr/bin/retroarch-real "\$@"
else else
echo "Starting Retroarch" echo "Starting Retroarch"
/usr/games/retroarch "\$@" /usr/bin/retroarch-real "\$@"
fi fi
EOL EOL
chmod +x /usr/bin/retroarch chmod +x /usr/bin/retroarch