launcher: fix wallpaper categories

This commit is contained in:
2 * r + 2 * t 2025-04-05 17:12:22 +11:00
parent 5ed190b06d
commit 5774996a93

View file

@ -45,7 +45,7 @@ export default class Wallpapers extends GObject.Object {
const maxDepth = path.recursive ? "" : "-maxdepth 1";
const files = await execAsync(`find ${absPath} ${maxDepth} -path '*/.*' -prune -o -type ${type} -print`);
if (path.threshold > 0) {
if (type === "f" && path.threshold > 0) {
const data = (
await execAsync([
"fish",