Never use root
@ -2,7 +2,7 @@
# Check for the existence of the Intel video device
if [ -e /dev/dri ]; then
VIDEO_GID=$(stat -c '%g' /dev/dri/* | head -n 1)
VIDEO_GID=$(stat -c '%g' /dev/dri/* | grep -v 0 | head -n 1)
else
exit 0
fi