From aed4d9737d0f6f1d84a88334f67a05ab517e9f69 Mon Sep 17 00:00:00 2001 From: ekklesia Date: Fri, 4 Sep 2026 17:13:00 -0500 Subject: [PATCH] fix: point mako at the packaged config explicitly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit mako 1.10 only searches $XDG_CONFIG_HOME/mako/config and ~/.mako/config — confirmed against the shipped binary, and mako(5) documents no system path. The config installed to /etc/xdg/mako/config would have been read by nothing and every notification would have come out stock. Ship it alongside the rest of the package's config in /etc/ekklesia-classroom/mako/ and name it on mako's command line, which also keeps it dpkg-owned instead of writing into the user's home. Start mako before the dock as well, so nothing can send a notification early and have D-Bus activate an unstyled instance that then holds the bus name for the rest of the session. Co-Authored-By: Claude Opus 5 --- config/sway/config | 8 +++++--- tools/build-release.sh | 5 +++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/config/sway/config b/config/sway/config index dcf398c..7fcbfbc 100644 --- a/config/sway/config +++ b/config/sway/config @@ -6,12 +6,14 @@ set $mod Mod4 # Wallpaper output * bg /usr/share/backgrounds/ekklesia/classroom-default.png fill +# Notifications, started before the dock so nothing can race D-Bus into +# activating an unstyled mako first. mako only ever searches ~/.config, +# so the packaged config has to be named explicitly. +exec --no-startup-id /usr/bin/mako --config /etc/ekklesia-classroom/mako/config + # Ekklesia Classroom dock exec --no-startup-id /usr/local/bin/classroom-dock -# Notifications. Styled by /etc/xdg/mako/config to match the dock. -exec --no-startup-id /usr/bin/mako - # Keep the interface intentionally minimal. # Additional classroom controls are added explicitly by Ekklesia Classroom. diff --git a/tools/build-release.sh b/tools/build-release.sh index 1a01bec..702cccf 100755 --- a/tools/build-release.sh +++ b/tools/build-release.sh @@ -119,10 +119,11 @@ install -Dm644 \ "$ROOT/config/dock/style.css" \ "$STAGE/etc/ekklesia-classroom/dock/style.css" -# Notification styling, matched to the dock. +# Notification styling, matched to the dock. mako only searches +# ~/.config, so sway starts it with an explicit --config path. install -Dm644 \ "$ROOT/config/mako/config" \ - "$STAGE/etc/xdg/mako/config" + "$STAGE/etc/ekklesia-classroom/mako/config" # Chrome enterprise policy: suppress first-run and sign-in nags, and pin # Home to Wonder Ink. Nothing here restricts where teachers can browse.