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

When using ZWIFT_UID/ZWIFT_GID in Docker does not work under wayland #114

Open
sHedC opened this issue May 10, 2024 · 2 comments
Open

When using ZWIFT_UID/ZWIFT_GID in Docker does not work under wayland #114

sHedC opened this issue May 10, 2024 · 2 comments
Assignees

Comments

@sHedC
Copy link
Collaborator

sHedC commented May 10, 2024

Describe the bug
When using for example "ZWIFT_UID=1200 ZWIFT_GID=1200 zwift" and running under wayland the window fails to open and it exist.

Note that this has always been an issue with this since implementation of the ZWIFT_UID option.

To Reproduce
Steps to reproduce the behavior:

  1. ZWIFT_UID=1200 ZWIFT_GID=1200 zwift
  2. Exits, if using -it inplace of -d in zwift it shows can't open window.

Expected behavior
Open the XWayland window correctly

Screenshots
N/A

Additional context
The reason is that docker starts as root and re-assigns the /run/user/$ZWIFT_UID as the new user id, this fails to pass through to gosu user:user correctly and so wine is not able to open an xwindow as has no permissions for some reason.

@sHedC
Copy link
Collaborator Author

sHedC commented May 10, 2024

Note: I was looking at the docker remap functionality, which may work in most cases extept Redhat and CentOS (for stupid reasons) I will test.

@sHedC
Copy link
Collaborator Author

sHedC commented May 13, 2024

Does not work in Podman or Docker as can't pass over permissions to XAuthority or Xhost to the use ID's.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants