From 0b564255ea6e403dc3a2879c7bf668ecda986111 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 24 Jul 2026 18:52:26 -0700 Subject: [PATCH] Stack the Wi-Fi toast above the update toast on first run Both notifications are sent from background subshells, so whichever notify-send registered first won the bottom slot. Give the update toast a tick to register so Wi-Fi lands newest and stacks on top. --- install/user/first-run/wifi.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install/user/first-run/wifi.sh b/install/user/first-run/wifi.sh index 82d95667..16a927f4 100644 --- a/install/user/first-run/wifi.sh +++ b/install/user/first-run/wifi.sh @@ -16,6 +16,10 @@ notify_wifi() { if ! ping -c3 -W1 1.1.1.1 >/dev/null 2>&1; then notify_update "When you have internet, click to update the system." + # Both toasts are sent from background subshells, so let the update one + # register before queueing Wi-Fi. Newest stacks on top, and Wi-Fi is what + # you need first. + sleep 0.3 notify_wifi else notify_update "Click to update the system."