From 9aa2b370b78d6e2d741ee14afef0a8094412bfd8 Mon Sep 17 00:00:00 2001 From: Shiloh Fen Date: Thu, 21 Aug 2025 04:09:30 -0500 Subject: [PATCH] envision/debug: Collect more container info Signed-off-by: Shiloh Fen --- src/atomic-xr/_debug.nu | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/atomic-xr/_debug.nu b/src/atomic-xr/_debug.nu index fe515ed..7bfc1ba 100644 --- a/src/atomic-xr/_debug.nu +++ b/src/atomic-xr/_debug.nu @@ -16,7 +16,7 @@ export def main [ let flatpak_installed = flatpak list --columns application | lines { - debug_version: 1 + debug_version: 2 sys: { host: (sys host) cpu: (sys cpu) @@ -38,13 +38,12 @@ export def main [ installed: (which distrobox | is-not-empty) } envision: { - container_exists: (try { - (distrobox ls --no-color + container: (try { + distrobox ls --no-color | parse -r '(?P.*)\s\|\s(?P.*)\s\|\s(?P.*)\s\|\s(?P.*)' | str trim | skip 1 | where name == envision - | length) == 1 }) bin_exists: ("~/.local/bin/envision" | path exists) devel_desktop_exists: ("~/.local/share/applications/org.gabmus.envision.Devel.desktop" | path exists) -- 2.51.2