From a846cb2a424fd17d43e3edf885cca7d79820fa9f Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Thu, 8 Feb 2018 21:41:31 +0100 Subject: [feat] use a config file to check when to produce the next notification --- bitmask/darwin.go | 2 +- bitmask/events.go | 2 +- bitmask/unix.go | 2 +- bitmask/windows.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'bitmask') 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" -- cgit v1.2.3