diff --git a/profile.go b/profile.go index 76999b8..9972d03 100644 --- a/profile.go +++ b/profile.go @@ -14,6 +14,8 @@ type Profile struct { Name string // Path to binary to launch Path string + // Path of the config file + ConfigPath string `json:"-"` // Optional path of binary to watch for watchdog purposes if different than Path Watchdog string // Optional wrapper binary to use when launching command (ex: tsocks) @@ -151,5 +153,6 @@ func loadProfileFile(file string) (*Profile, error) { if p.Name == "" { p.Name = path.Base(p.Path) } + p.ConfigPath = file return p, nil }