export: add default path for exported bins

Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
This commit is contained in:
Luca Di Maio
2023-06-13 22:41:06 +02:00
parent 21da35fe3e
commit d71a805ac0
2 changed files with 4 additions and 5 deletions

View File

@@ -26,7 +26,7 @@
# DISTROBOX_HOST_HOME
# Defaults
dest_path=""
dest_path="${HOME}/.local/bin"
export_action=""
exported_app=""
exported_app_label=""
@@ -37,10 +37,10 @@ extra_flags=""
# DBX_HOST_HOME is set in case container is created
# with custom --home directory
host_home="${DISTROBOX_HOST_HOME:-"${HOME}"}"
start_shell=""
is_login=0
is_sudo=0
rootful=""
start_shell=""
verbose=0
version="1.4.2.1"

View File

@@ -25,7 +25,7 @@ automatically be launched from the container it is exported from.
Defaults to (on \$container_name)
--export-path/-ep: path where to export the binary
--extra-flags/-ef: extra flags to add to the command
--login/-l run the exported item in a login shell
--login/-l run the exported item in a login shell
--sudo/-S: specify if the exported item should be run as sudo
--help/-h: show this message
--verbose/-v: show more verbosity
@@ -37,7 +37,7 @@ Using `distrobox-export` from **inside** the container will let you use them fro
# EXAMPLES
distrobox-export --app mpv [--extra-flags "flags"] [--delete] [--sudo]
distrobox-export --bin /path/to/bin --export-path ~/.local/bin [--extra-flags "flags"] [--delete] [--sudo]
distrobox-export --bin /path/to/bin [--export-path ~/.local/bin] [--extra-flags "flags"] [--delete] [--sudo]
**App export example**
@@ -59,7 +59,6 @@ your `env` or project.
The exported binaries will be exported in the "--export-path" of choice as a wrapper
script that acts naturally both on the host and in the container.
Note that "--export-path" is NOT OPTIONAL, you have to explicitly set it.
**Additional flags**