Linux distribution and version
GNOME OS master
Flatpak version
Flatpak 1.4.3
Description of the problem
It seems bash has troubles to tcsetprg when spawning host bash with flatpak-spawn --host. This is unexpected since the in source code of HostCommand it should set the console right.
When using debug mode, we get the error:
F: ioctl(0, TIOCSCTTY, 0) failed: Operation not permitted
Maybe setsid and setpgid should not be called in child_setup_func from session-helper/flatpak-session-helper.c if data->set_tty.
Steps to reproduce
bash-5.0$ flatpak run --talk-name=org.freedesktop.Flatpak --command=bash org.freedesktop.Sdk//19.08
bash-5.0$ flatpak-spawn --host bash -i
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
bash-5.0$
Linux distribution and version
GNOME OS master
Flatpak version
Flatpak 1.4.3
Description of the problem
It seems bash has troubles to
tcsetprgwhen spawning host bash withflatpak-spawn --host. This is unexpected since the in source code ofHostCommandit should set the console right.When using debug mode, we get the error:
Maybe
setsidandsetpgidshould not be called inchild_setup_funcfromsession-helper/flatpak-session-helper.cifdata->set_tty.Steps to reproduce