Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webcam: group "video" is not x11docker default #241

Closed
mdhooge opened this issue Apr 8, 2020 · 1 comment
Closed

webcam: group "video" is not x11docker default #241

mdhooge opened this issue Apr 8, 2020 · 1 comment
Labels

Comments

@mdhooge
Copy link

mdhooge commented Apr 8, 2020

Hello,

On my up-to-date Archlinux with x11docker 6.6.1, I don't have access to the /dev/video* files in the guests (e.g. it doesn't work with x11docker/check).
As expected, the /dev/video* files are owned by group video; but my host user doesn't belong to that group. Maybe this is Archlinux specific, but according to the Wiki, this is udev that does the magic!

In the x11docker source, function setup_webcam has the following comment:
Unprivileged users need to be in group video (x11docker default).
But this is not the case with my configuration…

If I put the following line just below the comment, then everything is fine (check & cheese images tested so far).
Containerusergroups="$Containerusergroups video"

I searched through the source, only the --gpu option adds this group to the user list.

HTH
M.

mviereck added a commit that referenced this issue Apr 8, 2020
@mviereck
Copy link
Owner

mviereck commented Apr 8, 2020

Thank you for the report and the detailed investigation!
Is fixed now in master branch with exactly your suggestion.

Once x11docker always added the user to group video, later I decided to do that only if needed (with --gpu). But I forgot to adjust --webcam, too.

@mviereck mviereck added the bug label Apr 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants