* all: process unhandled DBX_NON_INTERACTIVE and DBX_VERBOSE env vars
DBX_NON_INTERACTIVE was added in 7203563, but has not been added to new
files since then.
DBX_VERBOSE was added in 78b3319, but was not handled in all files that
use verbose as an option.
* all: modify optional env var header to reflect script implementation
* all: fix configs not being parsed/handled in all commands
* all: general code organization for consistency/readability
* fix: revert changes for in-container commands
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
---------
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
Co-authored-by: Luca Di Maio <luca.dimaio1@gmail.com>
* init: massively speed up apt-get deps install
Similar to the previous apk optimization instead of checking each
package one by one instead grab the matching ones from "apt list" and
pass them directly over to "apt-get install".
This happens to start installing libvte-2.90-common on ubuntu:14.04
where libvte-2.9*-common doesn't match anything when given to apt*
commands directly.
On my end non-toolbox Ubuntu 22.04 and 14.04 images saw a setup time
reduction from ~68 and 80 seconds respectively to just ~44 seconds each!
* init: massively speed up pacman deps install
Also drop both the duplicate vte-common & redundant opengl-driver (mesa
is always picked as default provider) package entries, (once again)
avoid re-installing already up-to-date packages; on my end the setup
time for the non-toolbox arch image was reduced from ~19 seconds to ~13
seconds.
* init: massively speed up xbps deps install
On my end the setup time was reduced from ~25 seconds to ~19 seconds.
* fix(init): resolve issues with older apt versions
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
* docs: fix compatibility issue with debian buster backports
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
---------
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
Co-authored-by: Luca Di Maio <luca.dimaio1@gmail.com>
Previously (for nearly two years?) attempting e.g.
"distrobox-export -a htop" with a file/dir named "htop" in $PWD it would
mistakenly get detected as the icon for the program, copied over to
~/.local/share/icons/ and attempted to be used by the .desktop file.
Instead of running "apk info" on each package individually instead just
compare the list of requested packages to an "apk search" of them and
pick the ones that could be found.
On alpine due to the way searching for providers of openssh-client and
exact matching of the found packages (procps is procps-ng) adjust these
both accordingly to keep the end result consistent for alpine and wolfi.
On my end this halves the setup time for the non-toolbox alpine and
wolfi images from ~30 and 40 seconds to ~15 and 20 seconds respectively.
* Create icon subdirectory and move scalable icon
* Add fixed size png application icons
* Modify install script to install icons to correct locations
* Fix typo in for loop
* Fix indentation
* Further corrected indentation.
* Formatting and code cleanups
* Formatting fixes
I actually don't know what I did.
But shfmt is no longer complaining.