From f3d6c55234c602fbfde529791042acb5344c4242 Mon Sep 17 00:00:00 2001 From: Breadway Date: Sun, 16 Aug 2026 00:35:26 +0800 Subject: [PATCH] iso: prefer bread-polkit when it is on PATH The themed agent lives in bread-ecosystem and is not on the ISO lockfile yet. Fall back to polkit-gnome so install-time auth still works. --- iso/airootfs/etc/skel/.config/hypr/hyprland.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/iso/airootfs/etc/skel/.config/hypr/hyprland.lua b/iso/airootfs/etc/skel/.config/hypr/hyprland.lua index c6c8e0b..d16a363 100644 --- a/iso/airootfs/etc/skel/.config/hypr/hyprland.lua +++ b/iso/airootfs/etc/skel/.config/hypr/hyprland.lua @@ -126,7 +126,10 @@ hl.on("hyprland.start", function() -- Clipboard history is breadclipd, a bakery-managed systemd --user -- service (auto-started from /usr/lib/systemd/user — see -- build-local.sh's service bake) rather than an exec-once here. - "/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1", + -- Prefer bread-polkit when bakery has published it; otherwise the + -- ISO's polkit-gnome agent. command -v so a missing binary does not + -- leave the session without an auth agent. + "sh -c 'if command -v bread-polkit >/dev/null; then exec bread-polkit; else exec /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1; fi'", "awww-daemon", -- Set the default wallpaper once the daemon is up (retry until ready). -- Raw `awww img`, NOT `breadpaper set` — breadpaper set also runs real