diff --git a/arch-updater/CHANGELOG.md b/arch-updater/CHANGELOG.md index c512341e..46884f20 100644 --- a/arch-updater/CHANGELOG.md +++ b/arch-updater/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to Arch Updater are documented here. The panel's changelog icon (the history icon next to Check) shows this same file. +## 2.0.2 - 2026-08-28 + +- Fixed: Update in terminal mode always failed on the Flatpak step, auto-declining its confirmation prompt with "n" (exit 1) even when nothing was typed. flatpak's prompt refuses to be interactive once its stdout isn't a real terminal, which is the case here since the whole run is piped into `tee` for the log; pacman/AUR prompts aren't affected by this. The Flatpak step now runs non-interactively (`-y --noninteractive`) in terminal mode too, same as background mode already did; pacman/AUR review stays fully interactive. + ## 2.0.1 - 2026-08-21 - Added: a changelog view in the panel. Click the history icon next to Check to see what changed in each release. It also opens automatically once an update finishes, unless turned off in settings (Show changelog after updating). diff --git a/arch-updater/plugin.toml b/arch-updater/plugin.toml index bf93293e..2cf2362a 100644 --- a/arch-updater/plugin.toml +++ b/arch-updater/plugin.toml @@ -1,6 +1,6 @@ id = "yuuto/arch-updater" name = "Arch Updater" -version = "2.0.1" +version = "2.0.2" plugin_api = 9 author = "yuuto" license = "MIT" diff --git a/arch-updater/service.luau b/arch-updater/service.luau index e11d9bc2..0d0a7d69 100644 --- a/arch-updater/service.luau +++ b/arch-updater/service.luau @@ -1073,7 +1073,12 @@ local function buildTerminalCommand() table.insert(parts, "sudo pacman -Syu" .. ignoreFlag) end if cfg("flatpak_enabled") == true and noctalia.commandExists("flatpak") then - table.insert(parts, flatpakUpdateCommand("")) + -- flatpak's own Y/n prompt gates on isatty(stdout); since this whole + -- command is piped into `tee` for the log, flatpak sees a non-tty + -- stdout and auto-declines with "n" no matter what's typed + -- (flatpak/flatpak#4409). There's no real interactivity to preserve + -- here, so just make it non-interactive like the background mode. + table.insert(parts, flatpakUpdateCommand(" -y --noninteractive")) end return table.concat(parts, " && ") end