From 7cef3972a5f1199a6b709070f9dbfcaf5cd543bf Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Thu, 8 Feb 2018 12:32:40 +0100 Subject: [feat] use the right urls --- notificator.go | 6 ++++-- systray.go | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/notificator.go b/notificator.go index 31f2202..1e60221 100644 --- a/notificator.go +++ b/notificator.go @@ -8,8 +8,9 @@ import ( "github.com/0xAX/notificator" ) +const notificationText = `The RiseupVPN service is expensive to run. Because we don't want to store personal information about you, there is no accounts or billing for this service. But if you want the service to continue, donate at least $5 each month at https://riseup.net/donate-vpn` + func notificate() { - // TODO: we need a proper icon wd, _ := os.Getwd() notify := notificator.New(notificator.Options{ DefaultIcon: path.Join(wd, "riseupvpn.svg"), @@ -17,7 +18,8 @@ func notificate() { }) for { - notify.Push("Donate", "Have you already donated to RiseupVPN?", "", notificator.UR_NORMAL) time.Sleep(time.Minute * 5) + notify.Push("Donate to RiseupVPN", notificationText, "", notificator.UR_NORMAL) + time.Sleep(time.Hour * 24) } } diff --git a/systray.go b/systray.go index a11e3b6..3da4d19 100644 --- a/systray.go +++ b/systray.go @@ -82,9 +82,9 @@ func (bt *bmTray) onReady() { bt.bm.StopVPN() case <-mHelp.ClickedCh: - open.Run("https://riseup.net/en/vpn/vpn-black") + open.Run("https://riseup.net/vpn") case <-mDonate.ClickedCh: - open.Run("https://riseup.net/en/donate") + open.Run("https://riseup.net/donate-vpn") case <-mAbout.ClickedCh: open.Run("https://bitmask.net") -- cgit v1.2.3