diff --git a/notificator.go b/notificator.go index 8d0ee1879a632eb1059f40938121fd56990a4e5f..a69bdb01f9babc80d26b28c5e9452979138b28e0 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) {