Skip to content

Commit 459b702

Browse files
dengbo11deepin-bot[bot]
authored andcommitted
fix: accounts icon save error
we must walk the accounts icon path to get right icon path Log:
1 parent d3973de commit 459b702

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

accounts1/utils.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import (
2424
polkit "github.com/linuxdeepin/go-dbus-factory/system/org.freedesktop.policykit1"
2525
"github.com/linuxdeepin/go-lib/encoding/kv"
2626
"github.com/linuxdeepin/go-lib/graphic"
27-
"github.com/linuxdeepin/go-lib/strv"
2827
"github.com/linuxdeepin/go-lib/utils"
2928
)
3029

@@ -87,9 +86,7 @@ func getUserIcons() ([]string, []string) {
8786
return err
8887
}
8988

90-
subPaths := []string{"dimensional", "flat", "local"}
91-
92-
if info.IsDir() && strv.Strv(subPaths).Contains(info.Name()) {
89+
if info.IsDir() && info.Name() != "icons" {
9390
paths = append(paths, path)
9491
}
9592

0 commit comments

Comments
 (0)