pub fn spawn_install_all(items: &[PackageItem], dry_run: bool)Expand description
What: Spawn a terminal to install a batch of packages.
Input:
items: Packages to installdry_run: Whentrue, prints commands instead of executing
Output:
- Launches a terminal (or falls back to
bash) running the composed install commands.
Details:
- Official packages are grouped into a single
pacmaninvocation - AUR packages are installed via
paru/yay(prompts to install a helper if missing) - Prefers common terminals (GNOME Console/Terminal, kitty, alacritty, xterm, xfce4-terminal, etc.); falls back to
bash - Appends a “hold” tail so the terminal remains open after command completion
- During tests, this is a no-op to avoid opening real terminal windows.