close
Skip to content

flatpak-spawn cannot allocate TTy properly #3285

@yajo

Description

@yajo

Linux distribution and version

Fedora Silverblue 31

Flatpak version

flatpak-1.4.3-3.fc31.x86_64

Description of the problem

When calling flatpak-spawn --host bash from inside a flatpak, it cannot work properly:

sh-4.4$ flatpak-spawn --host --env=LANG=C bash
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell

The final use case is to try to set the default terminal in flatpak'd VSCode to flatpak-spawn --host toolbox enter... and, of course, that it works.

Steps to reproduce

  1. Install https://flathub.org/apps/details/com.visualstudio.code.oss
  2. Open it.
  3. Open its integrated terminal (View > Terminal)
  4. Execute flatpak-spawn --host bash

Other shells are even worse. Just try with fish for example, it doesn't work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions