[Error] Prompted to enter the (root) password twice for exported applications when `root=true` (or `--root`)
- Linguagem predominante
- Go
- Estrelas
- 13k
- Forks
- 541
- Merge médio
- 20h 47min
- PRs com merge (30d)
- 4
Descrição
**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`
Guia de contribuição
Direção de pesquisa
Olhe o script distrobox-export, provavelmente em /usr/bin/distrobox-export ou no subcommand export do projeto. O bug ocorre ao exportar um app para um root container; rastreie onde sudo ou pkexec é chamado. Verifique se há authorization prompts duplicados na export logic. Teste exportando um app com o flag --root e veja de onde o segundo prompt se origina.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- bash, docker, linux, shell
- Domínio
- cli, developer-experience
- Tipo de issue
- Bug
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Status de atividade
- Ativa
- Clareza
- Claramente especificada
- Facilidade para iniciantes
- 65/100