-
Notifications
You must be signed in to change notification settings - Fork 379
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
can't set timezone in Kodi - bind-mount /usr/share/zoneinfo? #50
Comments
I suppose another option would be to install |
I did a test with
I get the right time with:
Now I am confused. As the issue is specific to kodi within ubuntu 18.04, and ubuntu:18.04 has no issue with shared Though, if we find a general solution that works for other images, too, I am willing to include it in x11docker. (OT side note: consider to register |
I ran your tests and got the same results. Super confusing. After some more research, I think I discovered the cause. Turns out that Docker has a slightly strange behavior when you perform a single-file bind-mount into a container on top of an existing symbolic link (e.g. mounting
In other words, the container's copy of Now, what happens if we additionally mount For Kodi, the reason the behavior changed between Ubuntu 16.04 (Xenial) and 18.04 (Bionic) is that In short, I don't think it would be wise to add |
Thanks for the reminder! Done 👍 |
Thanks for your research! I admit I wasn't even aware that
An experiment that at least works with my examples above: I am sharing
I've uploaded this change in master branch. Could you try out if it works with kodi, too? |
That's a clever idea. I just tested |
:-) So I will keep it in the code. |
Currently I am in doubt if I should keep the solution sharing I am not sure how to solve this the best way. Maybe I should only create the softlink I just did a test with only providing the target file if libc from host and container match. I have to investigate further, just want to tell you that this may change again. |
I finally decided to change the timezone syncing procedure. If host and image both are based on glibc, x11docker provides only the one file where If the targeted timezone exists in container, the symlink If all of the above fails, environment variable This works with debian and ubuntu bionic images as well as with alpine/musl libc. Only kodi does not recognize the time zone settings and the provided timezone file, and the options to change it are greyed out :-(. But kodi works if I recommend to install |
Thanks for this update! I tested it with Kodi ( |
:-) It's confusing, and I did several tries and mistakes until it worked. Though, I think kodi itself should at least check But, feel happy we don't have issues with keyboard mapping. Keyboard settings are a real PITA. :-D |
A user of
ehough/docker-kodi
reported that they couldn't change the timezone in Kodi. After a little digging, I found that Kodi relies on the presence of the/usr/share/zoneinfo
directory to allow the user to select their country and timezone. Manually bind-mounting this directory (read-only) into the container resolves the issue.Do you think this would be worthwhile adding as a default feature for
x11docker
, much like is already with/etc/localtime
? I'd guess that a number of other GUI apps (especially desktop environments?) would rely on reading this directory, and I can't think of any obvious drawbacks.Thoughts?
The text was updated successfully, but these errors were encountered: