I recently run into an issue, I wanted to use zsh instead of sh or bash in the vs-codium terminal, I installed it as a flatpak.
Understand the problem:
- The Flatpak app runs in an isolated sandbox;
- It can't access your real shell
(/usr/bin/zsh)
directly.
Solution:
- you need
host-spawn
to bridge between sandbox and host system.
How to Check if You're Using Flatpak
flatpak list | grep codium
If you see output like: com.vscodium.codium
, you are using the Flatpak version
If You Are Using the Flatpak Version:
1- Install host-spawn
:
sudo apt install flatpak-xdg-utils flatpak override --user --filesystem=host com.vscodium.codium
2- Update your settings like (ctrl + shift + P, open user settings (json) ):
"terminal.integrated.defaultProfile.linux": "zsh", "terminal.integrated.profiles.linux": { "zsh": { "path": "/app/bin/host-spawn", "args": ["zsh"], "icon": "terminal-bash", "overrideName": true } }
Good luck :)
Top comments (0)
Some comments may only be visible to logged-in visitors. Sign in to view all comments.