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