Open FlorianLudwig opened 3 years ago
Making the final few tweaks to my flatpak VSCode today and I found that this worked.
The whole quote is:
To make the Integrated Terminal automatically use the host system's shell,
you can add this to the settings:
{
"terminal.integrated.defaultProfile.linux": "bash",
"terminal.integrated.profiles.linux": {
"bash": {
"path": "/usr/bin/flatpak-spawn",
"args": ["--host", "--env=TERM=xterm-256color", "bash"]
}
}
}
You only need the first JSON key for it to work. Though I believe this solution kinda breaks the idea of security in Flatpak.
terminal.integrated.defaultProfile.linux
doesn't accept anything besides "bash" despite you add different profiles under terminal.integrated.profiles.linux
. In my case, my settings.json is like below and I can't make zsh the default:
"terminal.integrated.defaultProfile.linux": "zsh",
"terminal.integrated.profiles.linux": {
"bash": {
"path": "/usr/bin/flatpak-spawn",
"args": ["--host", "--env=TERM=xterm-256color", "bash"]
},
"zsh": {
"path": "/usr/bin/flatpak-spawn",
"args": ["--host", "zsh"]
},
"fish": {
"path": "fish"
},
"tmux": {
"path": "tmux",
"icon": "terminal-tmux"
},
"pwsh": {
"path": "pwsh",
"icon": "terminal-powershell"
}
},
i think its time to add toolbox inside the flatpak with vscode so devs don't have to use their host machines terminal anymore....
i think its time to add toolbox inside the flatpak with vscode so devs don't have to use their host machines terminal anymore....
Maybe a OS with toolbox preinstalled and use toolbox with "terminal.integrated.defaultProfile.linux"?
The
flatpak-warning.txt
provides the following advice:To which vs code answers: