fix(walker): background selector must follow symlinks (find -L)
Some checks failed
Check / eval-and-lint (push) Has been cancelled
Some checks failed
Check / eval-and-lint (push) Has been cancelled
Pillar 9 VM test: after the menu-registration fix, the walker background selector menu opened but still showed "No Results". Its GetEntries ran `find <dir> -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 <noreply@anthropic.com>
This commit is contained in:
@@ -46,7 +46,9 @@ function GetEntries()
|
|||||||
|
|
||||||
for _, wallpaper_dir in ipairs(dirs) do
|
for _, wallpaper_dir in ipairs(dirs) do
|
||||||
local handle = io.popen(
|
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"
|
.. " -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
|
if handle then
|
||||||
|
|||||||
Reference in New Issue
Block a user