From 94201fdb7af44b2844b4f520b5d05305f441443a Mon Sep 17 00:00:00 2001 From: Pavel Vorobyov Date: Wed, 25 Sep 2019 14:33:09 +0300 Subject: [PATCH] expandPath for plugin --- config/config.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/config.go b/config/config.go index eeff64f..6158853 100644 --- a/config/config.go +++ b/config/config.go @@ -332,7 +332,8 @@ func read(filename string, secondPass bool) (*XCConfig, error) { if err == nil { for _, key := range pmgrkeys { if key == "path" { - cfg.PasswordManagerPath, _ = props.GetString("passmgr.path") + pluginPath, _ := props.GetString("passmgr.path") + cfg.PasswordManagerPath = expandPath(pluginPath) } else { cfg.PasswordManagerOptions[key], _ = props.GetString(fmt.Sprintf("passmgr.%s", key)) }