diff --git a/icon-theme/icon-theme.go b/icon-theme/icon-theme.go index 207dd1e..bd428a0 100644 --- a/icon-theme/icon-theme.go +++ b/icon-theme/icon-theme.go @@ -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