From a12ea33795780e9c534746a30b67c09a3d2dfcd2 Mon Sep 17 00:00:00 2001 From: Saco Song Date: Tue, 18 Aug 2026 12:09:01 +0800 Subject: [PATCH] Process custom apps in the Omarchy v4 branch ApplyTheme only ran template.ProcessCustomApps in the pre-v4 path. On Omarchy v4 installs (isOmarchyV4) the dedicated v4 template renderer skipped it entirely, so templates in ~/.config/aether/custom/ were never generated. Run ProcessCustomApps in the v4 branch too, with the same warning-on- failure handling as the legacy path. All tests pass. --- internal/theme/writer.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/theme/writer.go b/internal/theme/writer.go index 3c28431..1f9eaf6 100644 --- a/internal/theme/writer.go +++ b/internal/theme/writer.go @@ -238,6 +238,9 @@ func (w *Writer) ApplyTheme(state *ThemeState, settings Settings) (*ApplyResult, variables := template.BuildVariables(state.ColorRoles, state.LightMode, state.ExtendedColors) if isOmarchyV4 { w.processOmarchyV4Templates(themeDir, variables, state.AppOverrides, state.ExtendedColors) + if err := template.ProcessCustomApps(themeDir, variables); err != nil { + log.Printf("Warning: custom app processing failed: %v", err) + } } else { w.processTemplates(variables, themeDir, settings, state.AppOverrides, state.ExtendedColors) w.applyEditorThemes(themeDir, settings, variables)