spawn_install

Function spawn_install 

Source
pub fn spawn_install(item: &PackageItem, password: Option<&str>, dry_run: bool)
Expand description

What: Spawn a terminal to install a single package.

Input:

  • item to install; password for sudo on official installs (optional); dry_run to print instead of execute

Output:

  • Launches a terminal (or bash) running pacman/paru/yay to perform the install

Details:

  • Prefers common terminals (GNOME Console/Terminal, kitty, alacritty, xterm, xfce4-terminal, etc.), falling back to bash. Uses pacman for official packages and paru/yay for AUR; appends a hold tail to keep the window open; logs installed names when not in dry_run.
  • During tests, this is a no-op to avoid opening real terminal windows.