diff options
author | Ruben Pollan <meskio@sindominio.net> | 2019-06-12 19:04:51 +0200 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2019-06-13 11:51:32 +0200 |
commit | 56d79a60679ba3783dcb5dd1ebe69436c5e5af7c (patch) | |
tree | cf391b54bff6a0bc54a8de958444fd968f60ed2b /pkg/systray | |
parent | bce7470262385baca771feee90e48e0c2e3616c6 (diff) |
[feat] check if polkit is running and launch it if possible
- Resolves: #141
Diffstat (limited to 'pkg/systray')
-rw-r--r-- | pkg/systray/run.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/systray/run.go b/pkg/systray/run.go index 172b9e8..d9d39de 100644 --- a/pkg/systray/run.go +++ b/pkg/systray/run.go @@ -82,6 +82,7 @@ func checkAndInstallHelpers(b bitmask.Bitmask, notify *notificator) error { if (err != nil && err.Error() == "nopolkit") || (err == nil && !priviledge) { log.Printf("No polkit found") notify.authAgent() + os.Exit(1) } else if err != nil { log.Printf("Error checking vpn: %v", err) notify.errorStartingVPN(err) |