Nicceboy / gamify-containers

Environment for playing Windows games on Linux containers with Lutris
MIT License
20 stars 3 forks source link

No permissions to /dev/dri #3

Closed cizra closed 3 years ago

cizra commented 3 years ago

On host machine, I'm in the video group, which gives me permissions to render. Inside the Docker container, though, numeric UIDs are mapped differently, so I don't have these permissions.

Suggest adding usermod -a -G $(stat -c %g /dev/dri/card0) lutris to entrypoint.sh.

Nicceboy commented 3 years ago

Good suggestion. For future note, in case different cards exists and they have different permissions, manual intervention is required. I don't know if there are any good dynamic solution for that. Maybe loop all cards? Might be rare case anyway.