55005a6f8d
* add nvidia dockerfile.
* add nvidia docker to build.
* remove vaapi.
* add google chrome and brave.
* upgrade to virtualgl 3.1.
* add disable-seccomp-filter-sandbox to chrome.
* use vgl display in vglrun.
* Revert "use vgl display in vglrun."
This reverts commit 0cd556b5d8
.
* update chrome params.
* update changelog.
* update brave.
* update CI.
13 lines
331 B
Bash
Executable File
13 lines
331 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
# Add VirtualGL directories to path
|
|
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 "$@"
|
|
else
|
|
echo "No GPU detected"
|
|
exec "$@"
|
|
fi
|