summaryrefslogtreecommitdiff
path: root/bitmask
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2018-02-08 21:41:31 +0100
committerRuben Pollan <meskio@sindominio.net>2018-02-08 21:41:31 +0100
commita846cb2a424fd17d43e3edf885cca7d79820fa9f (patch)
tree8b22a77ee70f87516fb11712b3597e238a2c7943 /bitmask
parentb32bcc834620a5c30ab4d7f7b8dde9ffdafd348f (diff)
[feat] use a config file to check when to produce the next notification
Diffstat (limited to 'bitmask')
-rw-r--r--bitmask/darwin.go2
-rw-r--r--bitmask/events.go2
-rw-r--r--bitmask/unix.go2
-rw-r--r--bitmask/windows.go2
4 files changed, 4 insertions, 4 deletions
diff --git a/bitmask/darwin.go b/bitmask/darwin.go
index f3e9224..8493436 100644
--- a/bitmask/darwin.go
+++ b/bitmask/darwin.go
@@ -4,4 +4,4 @@ package bitmask
import "os"
-var configPath = os.Getenv("HOME") + "/Library/Preferences/leap"
+var ConfigPath = os.Getenv("HOME") + "/Library/Preferences/leap"
diff --git a/bitmask/events.go b/bitmask/events.go
index 8645519..5808d51 100644
--- a/bitmask/events.go
+++ b/bitmask/events.go
@@ -72,5 +72,5 @@ func (b *Bitmask) eventsHandler() {
}
func getServerKeyPath() string {
- return filepath.Join(configPath, "events", "zmq_certificates", "public_keys", "server.key")
+ return filepath.Join(ConfigPath, "events", "zmq_certificates", "public_keys", "server.key")
}
diff --git a/bitmask/unix.go b/bitmask/unix.go
index 5b50f24..5bb522c 100644
--- a/bitmask/unix.go
+++ b/bitmask/unix.go
@@ -4,4 +4,4 @@ package bitmask
import "os"
-var configPath = os.Getenv("HOME") + "/.config/leap"
+var ConfigPath = os.Getenv("HOME") + "/.config/leap"
diff --git a/bitmask/windows.go b/bitmask/windows.go
index a574c96..36481f5 100644
--- a/bitmask/windows.go
+++ b/bitmask/windows.go
@@ -4,4 +4,4 @@ package bitmask
import "os"
-var configPath = os.Getenv("APPDATA") + "\\leap"
+var ConfigPath = os.Getenv("APPDATA") + "\\leap"