So, I installed vscode inside distrobox-universal, just to see what happens, and it just worked correctly.
But after that normal vscode that comes with the devmode is just stopped working. When i try to open it, it says “The window terminated unexpectedly (reason: ‘crashed’, code: ‘133’)”. I tried uninstalling vscode from the distrobox and deleting ~/.vscode and ~/.config/Code still the same issue.
Now vscode only works if i install it inside distrobox and start it from there.
Me and another user had the same issue. Unfortunately I don’t know any solutions. @arenas93 fixed it by restoring a snapshot with Rescuezilla, so that’s something to try if you use similar tools.
Unfortunately, didn’t help. But doing ujust update now maybe it will magically resolve it somehow. I will give an update once it’s done and I have time.
Well that didn’t work. Gonna install and use distrobox vscode for now.
I will investigate more when I can.
But if anyone else has the solution or has any idea why is this happening, your input would be appreciated.
There is one more thing that I did: for resetting vscode I also removed rm ~/.local/share/ublue/vscode-configured followed by ujust update.
This is b/c the team slightly adopted the mechanics for the vscode installation between the ISO and latest. Actually the change is intended to allow for (future) versioned vscode installs. BUT by deleting this file you’ll kinda force a clean vscode install w/ extension.
Unfortunately again, didn’t help. Even tried to going back to gts then latest again. Still the same issue.
Also, code serve-web seem to work, only the window fails(crashes).
Same issue, i mean i deleted every vscode dir anyway.
I mean i would imagine if i reset everything about vscode, it should just work? Is there anything else about vscode in the system other than ~/.vscode, ~/.config/Code, ~/.local/share/ublue/vscode-configured.
Also just realized, after i deleted it last time vscode-configured didn’t appear again, after doing ujust update (never mind it turns out i deleted it again after last time, it appeared after reboot)
Always use --home option to set a different home folder for your distrobox, I prefer doing --home "$HOME/Boxes/<container name>".
And you can link ~/.config/dconf inside the container to have correct theme and stuff inside the container.
This method also keeps the home folder clean.
Yup, I know, its just sometimes stuff in containers might “corrupt” the home folder its better having a different home folder for the container or containers.
i wasn’t trying to run the vscode from container to work in it anyway
i just did it at that time:
But in general its good to have a different home directory, at least for what i expect from containers. What I expect is a clean host.
Complained about state of linux in general. Which is also an issue in other OS(s) too
That’s why I remove host or home access from flatpaks too. Flatpak file/dir open/save dialog already auto shares file/dir from host with the flatpak app.
And that’s why I am not doing the Brew way, instead I have a devbox-ubuntu and devbox-fedora distrobox(es) with their own home folders.
I don’t like having bunch of random (.) files or folders in the home directory, that idk if i can delete or not, idk what is using them, idk if anything needs them etc.
It seems linux is not gonna get away from using (.) files/dirs at home any time soon, so using sandboxes, containers or lying about the home path is the only way atm.
I’m just tolerating seeing .vscode, .config, .local, .var, .bash-history, .bash-profile, .nv, .pki, .ssh, .cache …
You could argue why do these “apps” able to claim random paths in my home folder without asking me. It feels like software has more power than the user, that you constantly have to monitor what they do, and clean behind them. Makes you feel less in control.
I hope we solve these in the future with better and more strict flatpak. Like on android, and it can be even better than that.
We have been treating software like they are user’s will, but we should treat them just like another user on the system.