Add support for finding app icons on Linux (MVP)

This commit is contained in:
Daniel
2019-11-07 16:49:02 +01:00
parent af712382f8
commit c999d5559a
11 changed files with 276 additions and 17 deletions

View File

@@ -11,6 +11,7 @@ import (
"github.com/safing/portbase/log"
"github.com/safing/portbase/modules"
_ "github.com/safing/portmaster/core/base"
"github.com/safing/portmaster/profile/icons"
"github.com/safing/portmaster/updates"
)
@@ -52,7 +53,7 @@ func prep() error {
if err := iconsDir.Ensure(); err != nil {
return fmt.Errorf("failed to create/check icons directory: %w", err)
}
profileIconStoragePath = iconsDir.Path
icons.ProfileIconStoragePath = iconsDir.Path
return nil
}