From 95bc8b92bb4ade116f96ffcb2b40c42652acb37c Mon Sep 17 00:00:00 2001 From: Ruben Pollan <meskio@sindominio.net> Date: Wed, 20 Jun 2018 11:40:44 +0200 Subject: [PATCH] [feat] return the correct svg path for snap --- notificator.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/notificator.go b/notificator.go index 8d0ee187..a69bdb01 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) { -- GitLab