mirror of
https://github.com/kasmtech/workspaces-images.git
synced 2025-06-20 17:47:55 +02:00
KASM-6444 update pathing for retroarch init
This commit is contained in:
parent
b328375581
commit
166181cfaa
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user