From 0c12b117bd0f66394a541563c32502246222e6d9 Mon Sep 17 00:00:00 2001 From: sandrigo <47009594+sandrigo@users.noreply.github.com> Date: Fri, 28 Aug 2026 10:12:57 +0200 Subject: [PATCH 1/2] arch-updater: fix flatpak update always declining in terminal mode buildTerminalCommand() pipes the whole update run's output into `tee` for the log. flatpak's Y/n confirmation gates on isatty(stdout), so under `tee` it always sees a non-tty stdout, treats itself as non-interactive, and auto-answers "n" no matter what the user types - this is a known flatpak behavior (flatpak/flatpak#4409). pacman and the AUR helpers don't have this restriction, so their prompts keep working fine in the same pipeline; only flatpak's leg silently fails with exit 1. Since real interactivity for the flatpak step can't work here anyway, pass -y --noninteractive to it in terminal mode too, matching what background mode already does. pacman/AUR review stays fully interactive. --- arch-updater/service.luau | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 From 206a92f198295bfb827f00dc19bd8fda1b45121e Mon Sep 17 00:00:00 2001 From: sandrigo <47009594+sandrigo@users.noreply.github.com> Date: Fri, 28 Aug 2026 10:15:57 +0200 Subject: [PATCH 2/2] arch-updater: bump version to 2.0.2, changelog entry for the flatpak fix --- arch-updater/CHANGELOG.md | 4 ++++ arch-updater/plugin.toml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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"