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

WB: wrong default of XDG_CONFIG_DIRS? #607

Open
pat-s opened this issue Nov 8, 2024 · 0 comments
Open

WB: wrong default of XDG_CONFIG_DIRS? #607

pat-s opened this issue Nov 8, 2024 · 0 comments

Comments

@pat-s
Copy link
Contributor

pat-s commented Nov 8, 2024

XDG_CONFIG_DIRS is set to /mnt/dynamic:/mnt/session-configmap:/mnt/secret-configmap:/mnt/configmap:/mnt/load-balancer/.

However, as stated in https://docs.posit.co/ide/server-pro/rstudio_pro_sessions/customizing_session_settings.html, files like rstudio-prefs.json are only read when XDG_CONFIG_DIRS points to the directory containing them. This would actually be /mnt/session-configmap/rstudio.

The consequences are that files like config.session.rstudio-prefs.json are never read and result in an non-fatal error during session startup.

Setting

RSTUDIO_CONFIG_DIR: /mnt/session-configmap/rstudio

as a pod env var solves this.

(I've just discovered this recently and have to yet verify this in other instances. The fact falling over this now in a fresh install is a bit strange)

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

1 participant