LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

distrobox-export

export container applications and binaries to host system

TLDR

Export an app to the host
$ distrobox-export --app [mpv]
copy
Export an app with extra launch flags
$ distrobox-export --app [atom] --extra-flags "--foreground"
copy
Export a binary to ~/.local/bin
$ distrobox-export --bin [/usr/bin/vim] --export-path [~/.local/bin]
copy
List apps already exported from this container
$ distrobox-export --list-apps
copy
Delete an exported application
$ distrobox-export --app [atom] --delete
copy

SYNOPSIS

distrobox-export [options]

DESCRIPTION

distrobox-export exports applications or binaries from a Distrobox container to the host system. Exported apps appear in the host's application menu, and exported binaries become available on the host through a small wrapper script that runs them inside the container.Run this command from inside the container. Use either --app or --bin, not both together.

PARAMETERS

-a, --app app

Export application by name or absolute path to a .desktop file (creates a desktop entry)
-b, --bin binary
Export a binary by its absolute path inside the container
--list-apps
List applications already exported from this container
--list-binaries
List binaries already exported from this container
-ep, --export-path path
Destination path for an exported binary (e.g. ~/.local/bin)
-el, --export-label label
Label appended to the exported application name (defaults to "(on container)"; use "none" to disable)
-ef, --extra-flags flags
Extra flags passed to the command when the exported item runs
-nf, --enter-flags flags
Extra flags passed to the underlying `distrobox enter`
-S, --sudo
Run the exported item as root inside the container
-d, --delete
Un-export the specified application or binary

INSTALL

sudo dnf install distrobox
copy
sudo pacman -S distrobox
copy
sudo apk add distrobox
copy
sudo zypper install distrobox
copy
brew install distrobox
copy
nix profile install nixpkgs#distrobox
copy

CAVEATS

Must be run from inside the container. Exported apps depend on the container existing (it is started automatically on launch). Deleting the container breaks exported applications and binaries.

SEE ALSO

RESOURCES

Copied to clipboard
Kai