[Error] Prompted to enter the (root) password twice for exported applications when `root=true` (or `--root`)
- Langage dominant
- Go
- Étoiles
- 13k
- Forks
- 541
- Merge moyen
- 20 h 47 min
- PR mergées (30 j)
- 4
Description
**Describe the bug**
I've noticed that when I export a program into a root Distrobox, I'm prompted to enter the (root) password twice.
I understand being asked once, but the second time feels unnecessary and kind of annoying.

**To Reproduce**
Create one distrobox with `root=true` option (`distrobox.ini`):
```
[container]
name=test
image=quay.io/toolbx/ubuntu-toolbox:24.04
root=true
init=true
additional_packages=systemd
volume=~/.local/linuxbrew:/home/linuxbrew
```
`distrobox assemble create`
[Generated desktop file by 'distrobox-export --app codium'](https://github.com/user-attachments/files/19721679/development-codium.desktop.txt)
**Expected behavior**
The root password should only be requested once.
**Logs**
~Run the commands with `--verbose` and post the log here as a file upload
Attach also the output of `podman logs` or `docker logs`, possibly with `--latest` flag~
**Desktop:**
- Podman 5.4.2
- Distrobox 1.8.1.2
- Fedora Linux 41 Kinoite | KDE Plasma 6.3.4 | Linux kernel: 6.13.10-200.fc41.x86_64 | OSTree v41.20250411.0
- Distrobox installed with `rpm-ostree install distrobox`
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.