MCPcopy Index your code
hub / github.com/safing/portmaster / Start

Method Start

service/process/module.go:24–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22}
23
24func (pm *ProcessModule) Start() error {
25 identifier := "portmaster"
26 if runtime.GOOS == "windows" {
27 identifier += ".exe"
28 }
29
30 file, err := pm.instance.BinaryUpdates().GetFile(identifier)
31 if err != nil {
32 log.Errorf("process: failed to get path of ui: %s", err)
33 } else {
34 pm.portmasterUIPath = file.Path()
35 }
36 return nil
37}
38
39func (pm *ProcessModule) Stop() error {
40 return nil

Callers

nothing calls this directly

Calls 4

ErrorfFunction · 0.92
GetFileMethod · 0.80
BinaryUpdatesMethod · 0.65
PathMethod · 0.65

Tested by

no test coverage detected