mirror of
https://github.com/m1k1o/neko.git
synced 2025-04-29 02:16:21 +02:00
use vgl display in vglrun.
This commit is contained in:
parent
f50fdcf286
commit
0cd556b5d8
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ export PATH="${PATH}:/opt/VirtualGL/bin"
|
|||
|
||||
# Use VirtualGL to run wine with OpenGL if the GPU is available, otherwise use barebone wine
|
||||
if [ -n "$(nvidia-smi --query-gpu=uuid --format=csv | sed -n 2p)" ]; then
|
||||
exec vglrun "$@"
|
||||
exec vglrun -d $VGL_DISPLAY "$@"
|
||||
else
|
||||
echo "No GPU detected"
|
||||
exec "$@"
|
||||
|
|
Loading…
Add table
Reference in a new issue