-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
Overriding XDG_DATA_HOME in snap leads to multiple problems #237608
Comments
ping @deepak1556 i guess |
A temporary fix for the terminal issues is to set |
Some other problems that I noticed were caused by this change
the list goes on... Basically yes, please can you revert this part of the change? 🙏 The terminal workaround works for some of these, but not the fonts thing. For that one specifically, you can run as |
I have similar problems after I have switched from the
The workaround from above works for me, thanks @LoicGrobol! |
Another example: executing Weirdly enough though, the env var was mentioning |
I've been having issues with Jupyter notebooks in vscode (see here and here) with kernel definitions (which by default live in One of the symtoms I've seen was that Could someone here help me confirm that these are connected to this issue — could anyone recommend any way to check? Or should I create a separate issue for that? |
You could try the suggested workaround and see if that fixes the issue on your side. |
@p-himik Yeah, I've done that and it does fix the output discrepancy within the terminals, but I don't expect it to fix the core problem of losing kernels in the notebooks, since that is not necessarily run by the terminal, I guess. And since that is an intermittent problem, it's not easy to dependably test anyway, so I am looking for some way to diagnose that this is the root cause of those issues. |
@jeckst It seems like it could be related at least! What led me to originally investigate this was uv virtual environments (which as this point some were in the snap tree and others in the regular home) jumping around. As in the list of available environments would change under my eyes while I was trying to select one. And it does look like jupyter uses the xdg path env variables (through platformdirs) in kernelspec. I guess you could set |
@LoicGrobol Thanks for the pointers, I will try that |
I encountered this with missing Atuin shell history in VSCode snap with a suggestion to create a link for Atuin, the same as Monospace fonts not working, however that seemed like a band aid and now can see it a much bigger issue. Thanks @LoicGrobol for terminal workaround, a slight tweak to use "terminal.integrated.env.linux": {
"XDG_DATA_HOME": "${env:HOME}/.local/share"
} @deepak1556 Is preserve sys vars feature, implemented in #185834, working as expected? My reading of the change suggested that under snap vscode the terminals would revert to original env vars but I don't see that happening:
|
Does this issue occur when all extensions are disabled?: Yes
Version: 1.97.0-insider
Commit: 9b0b13d
Date: 2025-01-08T05:06:32.681Z
Electron: 32.2.7
ElectronBuildId: 10660205
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Linux x64 6.12.8-1-MANJARO snap
2d28c0a added a feature that redefines
XDG_DATA_HOME
to be$SNAP_USER_DATA/.local/share
. This leads to several problemsWould it be possible to revert this, or at least have an option to make it opt-out-able?
The text was updated successfully, but these errors were encountered: