Allow forcing software rendering via snap config option

This commit is contained in:
Simon Fels 2018-07-04 16:50:23 +02:00
commit d35e494913
3 changed files with 10 additions and 1 deletions

View file

@ -33,4 +33,8 @@ if [ -e "$SNAP_COMMON"/.enable_debug ]; then
export ANBOX_LOG_LEVEL=debug
fi
if [ "$(snapctl get software-rendering.enable)" = true ]; then
export ANBOX_FORCE_SOFTWARE_RENDERING=true
fi
exec $SNAP/usr/bin/anbox $@