-
Notifications
You must be signed in to change notification settings - Fork 220
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
Pass XAUTHORITY environment variable to container #572
Conversation
Build failed.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this. The patch looks good, but the commit message needs some work:
- Would be better if you used a real email address instead of
[email protected]
- Prefix the subject of the commit with
pkg/utils:
and mention X11 clients instead of GUI programs - Link to this pull request
Build failed.
|
I was playing around with this a bit today, and I realized that we need to add the package that provides Otherwise, if |
It's necessary to propagate the XAUTHORITY environment variable from the host when an X11 client is run as 'sudo <some-client>'. If an X11 client is started inside a 'su -' session, then xauth(1) needs to be present so that pam_xauth.so can add a new XAUTHORITY environment variable to the 'su -' session. containers#572
Oops I should've addressed the review comments myself. @debarshiray thanks for improving the PR. |
It's necessary to propagate the XAUTHORITY environment variable from the host when an X11 client is run as 'sudo <some-client>'. If an X11 client is started inside a 'su -' session, then xauth(1) needs to be present so that pam_xauth.so can add a new XAUTHORITY environment variable to the 'su -' session. containers#572
My pleasure. Thank you for your contribution! |
On system that uses this instead of ~/.Xauthority, this is need to make sure the container can run X programs.