Open ghost opened 6 years ago
This works on debian 9; You have to restart your terminal for it to work. Press th kill terminal and open a new one.
Thank you for your response but restarting the terminal or vscode does not fix this problem.
Replace the path with /usr/bin/bash
or use the value which is showed with command, which bash
.
this doesn't work due to the pseudo root file structure for the flatpak apps, I see home is bind mounted. need similar solution for using system commands
A similar, but seemingly more informed discussion: https://github.com/flathub/com.visualstudio.code.oss/issues/5
Edit the settings of shell, i.e:
"terminal.integrated.shell.linux": "flatpak-spawn",
"terminal.integrated.shellArgs.linux": ["--host", "bash"],
Edit the settings of shell, i.e:
"terminal.integrated.shell.linux": "flatpak-spawn", "terminal.integrated.shellArgs.linux": ["--host", "bash"],
Thanks, @ricvelozo. But there are some messages of bash...
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
Do you know how can it be fixed?
@seongs1024 You can ignore the messages or use faltpak-spawn
for just the external tools, instead of full terminal.
Edit the settings of shell, i.e:
"terminal.integrated.shell.linux": "flatpak-spawn", "terminal.integrated.shellArgs.linux": ["--host", "bash"],
Thanks, @ricvelozo. But there are some messages of bash...
bash: cannot set terminal process group (-1): Inappropriate ioctl for device bash: no job control in this shell
Do you know how can it be fixed?
add export TERM=xterm
to .bashrc or .zshrc
add export TERM=xterm to .bashrc or .zshrc
$TERM is already set but I still get the warning:
[niko@fedora server]$ echo $TERM
xterm-256color
Try this.
"terminal.integrated.defaultProfile.linux": "zsh",
"terminal.integrated.profiles.linux": {
"zsh": {
"path": "/usr/bin/env",
"args": ["--", "flatpak-spawn", "--host", "--env=TERM=xterm-256color", "zsh"]
}
The same works for bash
"terminal.integrated.defaultProfile.linux": "bash",
"terminal.integrated.profiles.linux": {
"bash": {
"path": "/usr/bin/env",
"args": ["--", "flatpak-spawn", "--host", "--env=TERM=xterm-256color", "bash"]
}
bash: cannot set terminal process group (-1): Inappropriate ioctl for device bash: no job control in this shell
This was caused by me using an abandoned version of code-oss
sudo flatpak remove com.visualstudio.code.oss
sudo flatpak install flathub com.visualstudio.code-oss
Try this.
"terminal.integrated.defaultProfile.linux": "zsh", "terminal.integrated.profiles.linux": { "zsh": { "path": "/usr/bin/env", "args": ["--", "flatpak-spawn", "--host", "--env=TERM=xterm-256color", "zsh"] }
The same works for bash
"terminal.integrated.defaultProfile.linux": "bash", "terminal.integrated.profiles.linux": { "bash": { "path": "/usr/bin/env", "args": ["--", "flatpak-spawn", "--host", "--env=TERM=xterm-256color", "bash"] }
Does not work on Debian Buster...
@rayfoss - I think that's problem with "flatpak-spawn" and not the linux profile. I wouldn't say it is major issue, just annoying message. It shouldn't affect the bash. Do you see prompt after the message?
I set bash to be the standard terminal in the settings:
"terminal.integrated.shell.linux": "/bin/bash"
but it doesn't work. I only have this problem with the flatpak version of vscode. Is this because of flatpaks sandbox?OS: Kubuntu 18.04 LTS