From c5fe0e09fae7808d0c73cfc73089e32a4fc538f5 Mon Sep 17 00:00:00 2001 From: Bernardo Magri Date: Sun, 31 May 2026 10:05:05 +0100 Subject: [PATCH] fix(walker): background selector must follow symlinks (find -L) Pillar 9 VM test: after the menu-registration fix, the walker background selector menu opened but still showed "No Results". Its GetEntries ran `find -type f`, but home-manager deploys the per-theme background images as symlinks into the nix store, and `-type f` doesn't follow symlinks. Add -L (the sibling nomarchy_themes.lua already uses `find -L`). Verified in the VM: `find -type f` -> 0, `find -L` -> the backgrounds. Co-Authored-By: Claude Opus 4.8 --- .../elephant/config/menus/nomarchy_background_selector.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/features/apps/elephant/config/menus/nomarchy_background_selector.lua b/features/apps/elephant/config/menus/nomarchy_background_selector.lua index f75c336..221903c 100644 --- a/features/apps/elephant/config/menus/nomarchy_background_selector.lua +++ b/features/apps/elephant/config/menus/nomarchy_background_selector.lua @@ -46,7 +46,9 @@ function GetEntries() for _, wallpaper_dir in ipairs(dirs) do local handle = io.popen( - "find " .. ShellEscape(wallpaper_dir) + -- -L so -type f follows the home-manager symlinks the backgrounds are + -- deployed as (the nomarchy_themes.lua provider does the same). + "find -L " .. ShellEscape(wallpaper_dir) .. " -maxdepth 1 -type f \\( -name '*.jpg' -o -name '*.jpeg' -o -name '*.png' -o -name '*.gif' -o -name '*.bmp' -o -name '*.webp' \\) 2>/dev/null | sort" ) if handle then