diff options
-rw-r--r-- | notificator.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/notificator.go b/notificator.go index 8d0ee18..a69bdb0 100644 --- a/notificator.go +++ b/notificator.go @@ -99,6 +99,11 @@ func (n *notificator) errorStartingVPN(err error) { } func getSVGPath() string { + snapPath := os.Getenv("SNAP") + if snapPath != "" { + return snapPath + "/snap/gui/riseupvpn.svg" + } + wd, _ := os.Getwd() svgPath := path.Join(wd, svgFileName) if fileExist(svgPath) { |