diff --git a/service/process/module.go b/service/process/module.go index 624b0ba4..797c21e3 100644 --- a/service/process/module.go +++ b/service/process/module.go @@ -2,6 +2,7 @@ package process import ( "errors" + "runtime" "sync/atomic" "github.com/safing/portmaster/base/log" @@ -21,7 +22,12 @@ func (pm *ProcessModule) Manager() *mgr.Manager { } func (pm *ProcessModule) Start() error { - file, err := pm.instance.BinaryUpdates().GetFile("portmaster") + identifier := "portmaster" + if runtime.GOOS == "windows" { + identifier += ".exe" + } + + file, err := pm.instance.BinaryUpdates().GetFile(identifier) if err != nil { log.Errorf("process: failed to get path of ui: %s", err) } else { diff --git a/service/profile/profile.go b/service/profile/profile.go index 2db0e3a9..340b77cd 100644 --- a/service/profile/profile.go +++ b/service/profile/profile.go @@ -72,7 +72,7 @@ type Profile struct { //nolint:maligned // not worth the effort // Icons holds a list of icons to represent the application. Icons []binmeta.Icon - // Deprecated: LinkedPath used to point to the executableis this + // Deprecated: LinkedPath used to point to the executables this // profile was created for. // Until removed, it will be added to the Fingerprints as an exact path match. LinkedPath string // constant