ok i kinda forgot

This commit is contained in:
Sasha Koshka 2024-04-28 18:34:25 -04:00
parent 5b9c1ed1ef
commit 3b1620b5ef

View File

@ -94,7 +94,8 @@ func findTheme (name string, trail []string, warn bool, path ...string) (Theme,
instances := []string { }
for _, dir := range path {
entries, err := os.ReadDir(dir)
if err != nil { return Theme { }, err }
if err != nil { continue }
for _, entry := range entries {
if entry.Name() == name {
instances = append (
@ -143,7 +144,7 @@ func findTheme (name string, trail []string, warn bool, path ...string) (Theme,
if err != nil {
if warn {
log.Printf (
"xdg: could not parse inherited theme %s: %v",
"xdg: could not parse inherited theme '%s': %v",
parent, err)
}
continue