diff --git a/notificator.go b/notificator.go index 31f2202087be012dd64ff2777225f77e3a8e9d53..1e6022185582688f1156b3cc9a32be97c59bba75 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 a11e3b63a6b8e2a4c33c115ef522defbf1895865..3da4d19a021db5d9e996da0cc852eead29773d01 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")