summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2018-02-08 12:32:40 +0100
committerRuben Pollan <meskio@sindominio.net>2018-02-08 12:32:40 +0100
commit7cef3972a5f1199a6b709070f9dbfcaf5cd543bf (patch)
tree9e226918ccfa14cf4c22440e5ea5213c6d1d5dc7
parentbd57a25b7476021c394de56d4965b3aab6684f05 (diff)
[feat] use the right urls
-rw-r--r--notificator.go6
-rw-r--r--systray.go4
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")