Skip to content

Disable Clone Box while the box is running - #224

Open
kacperpaczos wants to merge 1 commit into
Dvlv:masterfrom
kacperpaczos:feat/state-hints
Open

Disable Clone Box while the box is running#224
kacperpaczos wants to merge 1 commit into
Dvlv:masterfrom
kacperpaczos:feat/state-hints

Conversation

@kacperpaczos

@kacperpaczos kacperpaczos commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

Closes #227

distrobox refuses to clone a running container, and BoxBuddy got round that by stopping the box behind the user's back before distrobox create --clone — the original box ended up Exited with nothing saying why. The Clone Box row is now greyed out while the box is running, the same way Delete Box is, and comes back once the box is stopped (the Stop button is right above it). The defensive stop_box in clone_box stays as a safety net for a box that comes up between the render and the click.

stopped box on the left with Clone live; running box on the right with Clone greyed out

Verified on a virtual display with a stub distrobox list emitting one stopped and one running box (screenshot above).

distrobox refuses to clone a running container, and BoxBuddy got round
that by stopping the box behind the user's back before `create --clone`.
The row is now greyed out while the box is up, the same way Delete Box
is, and comes back once it is stopped - the Stop button sits right above
it. The defensive stop in clone_box stays as a safety net for a box that
comes up between the render and the click.
@kacperpaczos kacperpaczos changed the title Say which box actions start or stop the box Disable Clone Box while the box is running Aug 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clone Box silently stops a running box

1 participant