Skip to content

vscode is not able to detected bash as terminal #39

Open

Description

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?
vscodebug

OS: Kubuntu 18.04 LTS

Activity

  1. mundusnine commented on Aug 25, 2018

    @mundusnine

    This works on debian 9; You have to restart your terminal for it to work. Press th kill terminal and open a new one.

  2. lsahn-gh commented on Sep 4, 2018

    @lsahn-gh

    Replace the path with /usr/bin/bash or use the value which is showed with command, which bash.

  3. parithy commented on Jan 1, 2019

    @parithy

    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

  4. peteruithoven commented on Mar 4, 2019

    @peteruithoven

    A similar, but seemingly more informed discussion: flathub/com.visualstudio.code.oss#5

  5. deleted a comment from ZeroAurora on Mar 9, 2019
  6. ricvelozo commented on Jun 26, 2019

    @ricvelozo

    Edit the settings of shell, i.e:

    "terminal.integrated.shell.linux": "flatpak-spawn",
    "terminal.integrated.shellArgs.linux": ["--host", "bash"],
  7. seongs1024 commented on Jan 7, 2020

    @seongs1024

    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
    

    image

    Do you know how can it be fixed?

  8. ricvelozo commented on Jan 8, 2020

    @ricvelozo

    @seongs1024 You can ignore the messages or use faltpak-spawn for just the external tools, instead of full terminal.

  9. noonsleeper commented on May 13, 2020

    @noonsleeper

    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
    

    image

    Do you know how can it be fixed?

    add export TERM=xterm to .bashrc or .zshrc

  10. darkbasic commented on Apr 23, 2021

    @darkbasic

    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
    
  11. vwalek commented on Jun 16, 2021

    @vwalek
    Contributor

    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"]
            }    
    
  12. FossPrime commented on Jun 23, 2021

    @FossPrime
    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
    
  13. FossPrime commented on Jun 23, 2021

    @FossPrime

    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...
    Screenshot 2021-06-23 12 15 22

  14. vwalek commented on Jun 23, 2021

    @vwalek
    Contributor

    @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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions