containers / containers/toolbox
Running run0 on the host results in the warning, but then works
- Dominant language
- Go
- Stars
- 3.5k
- Forks
- 262
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 1
Description
**Describe the bug**
When you use `flatpak-spawn --host` to run `run0` from inside a toolbox, it shows an error, then asks for the password on the host, and then works as expected. It would be great to get rid of the error message.
**Steps how to reproduce the behaviour**
1. Run: `flatpak-spawn --host run0 pwd`
2. You see the error: "Error creating textual authentication agent: Error opening current controlling terminal for the process (`/dev/tty'): No such device or address (polkit-error-quark, 0)"
3. The polkit client on the host opens, asking for the password, as expected
4. The result of `pwd` is shown as expected
**Expected behaviour**
The error is shown, even though the command works as expected.
**Actual behaviour**
No error is shown.
**Screenshots**
The expected password prompt is shown:

**Output of `toolbox --version` (v0.0.90+)**
`toolbox version 0.1.1`
**Toolbx package info (`rpm -q toolbox`)**
`toolbox-0.1.1-1.fc41.x86_64`
**Output of `podman version`**
```
Client: Podman Engine
Version: 5.4.0
API Version: 5.4.0
Go Version: go1.23.5
Built: Tue Feb 11 01:00:00 2025
Build Origin: Fedora Project
OS/Arch: linux/amd64
```
**Podman package info (`rpm -q podman`)**
`podman-5.4.0-1.fc41.x86_64`
**Info about your OS**
Fedora Linux 41.20250228.0 (Silverblue)
**Additional context**
I have not tried that before, so I don't know if it is new.
Contributor guide
Research direction
Start by reproducing `flatpak-spawn --host run0 pwd` in a toolbox and compare the terminal and authentication behavior. The issue names no implementation files or tests; done means the warning is absent while the host password prompt still appears and `pwd` succeeds.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, linux
- Domain
- authentication, cli, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100