1498 Commits

Author SHA1 Message Date
Xarvex
c8fcb12865 all: properly handle env vars and configs in all commands (#1328)
* 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>
2024-05-01 11:58:31 +02:00
distrobox-docs-bot
e51e4470a7 Automatic Man Page Update
Signed-off-by: distrobox-docs-bot <distrobox-docs-bot@users.noreply.github.com>
2024-05-01 09:53:22 +00:00
Jami Kettunen
7517cefd77 Support musl variant of Void Linux (#1327)
* init: fix Void musl setup by avoiding locale

This isn't applicable without glibc.

* docs: advertise compatibility with musl variant of Void Linux
2024-05-01 11:52:32 +02:00
Jami Kettunen
618bf902de init: massively speed up apt/pacman/xbps deps install (#1324)
* 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>
2024-05-01 11:52:18 +02:00
Tau
653b9bf99c export: cancel export when trying to delete (#1340)
When deleting an export that doesn't exist, the script would instead export the application.
2024-05-01 11:34:47 +02:00
Dan
67b8132703 Update useful_tips.md (#1330)
Minor typo fixes
2024-05-01 11:33:43 +02:00
Jami Kettunen
1fa4df90c4 export: consider only absolute candidate icon paths that exist (#1318)
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.
2024-05-01 11:28:32 +02:00
distrobox-docs-bot
02dae68e54 Automatic Man Page Update
Signed-off-by: distrobox-docs-bot <distrobox-docs-bot@users.noreply.github.com>
2024-05-01 09:27:49 +00:00
Pat Connors
47615f88a6 docs: Specify that distrobox is in the extra repo (#1316) 2024-05-01 11:27:06 +02:00
Luca Di Maio
867f4f85c7 all: bump version to 1.7.1
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
1.7.1 1.7.1.0
2024-03-25 20:02:51 +01:00
Luca Di Maio
4efcce575a export: fix typos
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
2024-03-25 20:02:40 +01:00
Luca Di Maio
c7f24abcb0 all: improve functions' documentation
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
2024-03-25 19:51:37 +01:00
Luca Di Maio
c10971ab93 init: fix formatting
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
2024-03-25 19:50:44 +01:00
Luca Di Maio
dc52905ef6 rm: do not block container removal if we cannot start it
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
2024-03-25 19:50:29 +01:00
Luca Di Maio
05d7a78f8d init: mask suspend/hibernate/hybrid-sleep
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
2024-03-25 19:47:58 +01:00
Luca Di Maio
2f85326438 all: ensure no side effects on global variables
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
2024-03-25 19:47:56 +01:00
Sandorex
dd12612786 create: add --clean-path flag and env var (#1299) 2024-03-25 19:38:36 +01:00
chitao1234
b79a7059b8 init: ignore findmnt error in routine remounting, Fix #1289 (#1296) 2024-03-25 19:36:15 +01:00
Michael Haaf
804b5ef0b7 enter: missing .fifo logfile in distrobox-enter (#1307)
Details:
- issue #610: bug and fix description
- original fix: fea7a84
- commit reverting the fix: a7df145

Related:
- issue #1303
2024-03-25 19:17:28 +01:00
Jami Kettunen
e5bbb7b59d init: massively speed up apk deps install (#1298)
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.
2024-03-25 19:01:41 +01:00
Cheng Zhang
90b17892b5 export: create the binary export path if it doesn't exist (#1291) 2024-03-25 18:55:31 +01:00
Arunava Ghosh
61f1816f0c docs: remove extra ` from xhost command (#1284) 2024-03-25 18:55:05 +01:00
Nathan Povo
3e3b73f50e docs: Add info on upgrading package on steamdeck (#1271)
* Add info on upgrading package on steamdeck

* Improve documentation
2024-03-25 18:54:48 +01:00
Luca Di Maio
7a56b6e899 install: fix linting
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
2024-03-13 18:11:31 +01:00
Luca Di Maio
1bb261a08a assemble: fix regression in file reading
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
2024-03-13 18:11:29 +01:00
xinhangzhou
01db4e2d78 chore: fix typo (#1283)
Signed-off-by: xinhangzhou <shuangcui@aliyun.com>
2024-03-13 18:11:18 +01:00
Lu Danin
4a0990d0ac install: fix installation script (#1282) 2024-03-13 15:19:32 +01:00
sfalken
4176c4bb67 install: add fixed resolution png icons for use on desktops (#1280)
* 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.
2024-03-13 08:59:06 +01:00
Brian Di Palma
19137702fa Update install (#1278) 2024-03-11 23:15:35 +01:00
Luca Di Maio
f26a01cff1 all: bump release to 1.7.0.1
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
1.7.0.1
2024-03-11 19:35:36 +01:00
Matěj Cepl
76c99fdb09 init: Fix a nit in fish shell (#1277)
Just making the style of the fish script more fish-like and
consistent within itself.
2024-03-11 19:12:39 +01:00
Luca Di Maio
4a51a29d40 init: fix linting
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
2024-03-11 19:11:35 +01:00
Luca Di Maio
609c053c7a init: better detection of file watching trigger, Fix #1272
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
2024-03-11 19:08:30 +01:00
Luca Di Maio
9d0cd87023 enter: fix shell when entering initful container after Fix #1275
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
2024-03-11 18:25:24 +01:00
Luca Di Maio
a3865e26e6 export: fix quotes arount exported binary path
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
2024-03-11 18:06:26 +01:00
Luca Di Maio
65d266ab03 upgrade: fix execution with new enter behavior
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
2024-03-11 18:01:27 +01:00
Luca Di Maio
82a69f0a23 enter: do not use a shell when executing a custom command, Fix #1275
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
2024-03-11 15:52:41 +01:00
Luca Di Maio
50595a839d export: fix execution of binaries with spaces in the name
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
2024-03-11 15:52:41 +01:00
Luca Di Maio
d0e9d1c4c4 rm: do not fail if no exports are found, Fix #1262
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
2024-03-11 15:52:39 +01:00
phoppermann
26f11a1632 init: use "zypper se --match-exact" (instead of "zypper se -x") (#1266) 2024-03-11 15:10:56 +01:00
Trent McPheron
10ab326b02 export: Add DISTROBOX_EXPORT_PATH env var for distrobox-export. (#1242) 2024-03-11 13:54:17 +01:00
Matěj Cepl
7a1147c5c5 init: don't create empty XAUTH\* variables. (#1252)
Creating these variables as empty, could have negative impact on
other programs. For example, it apparently breaks gpg-agent
(https://lists.gnupg.org/pipermail/gnupg-users/2024-March/066956.html).

Fixes: https://github.com/89luca89/distrobox/issues/1249
2024-03-11 13:52:01 +01:00
phoppermann
ef7179363c init: do not fail if locale cannot be set (#1267) 2024-03-11 13:50:49 +01:00
Meister1593
f10a036ffa generate-entry: respect DBX_CONTAINER_MANAGER variable (#1269) 2024-03-11 13:49:53 +01:00
distrobox-docs-bot
b7f9c57a4f Automatic Man Page Update
Signed-off-by: distrobox-docs-bot <distrobox-docs-bot@users.noreply.github.com>
2024-03-11 12:49:30 +00:00
Gabriel Cozma
214b0f224f docs: Updated Daudix's username (#1276) 2024-03-11 13:47:54 +01:00
Luca Di Maio
813026c5fb install: fix version, Fix #1243 (#1246)
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
2024-03-01 17:14:22 +01:00
Luca Di Maio
7ef5cfeb1e all: bump release 1.7.0
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
1.7.0
2024-02-28 19:25:44 +01:00
Luca Di Maio
4bdf70c9ca docs: add missing export step in libvirt guide
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
2024-02-27 20:54:03 +01:00
Luca Di Maio
60f387f73d rm: be non-interactive if forcing
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
2024-02-27 20:26:33 +01:00