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_runto print instead of execute
Output:
- Launches a terminal (or
bash) runningpacman/paru/yayto perform the install
Details:
- Prefers common terminals (
GNOME Console/Terminal,kitty,alacritty,xterm,xfce4-terminal, etc.), falling back tobash. Usespacmanfor official packages andparu/yayfor AUR; appends a hold tail to keep the window open; logs installed names when not indry_run. - During tests, this is a no-op to avoid opening real terminal windows.