diff options
author | Kali Kaneko (leap communications) <kali@leap.se> | 2019-07-03 21:06:44 +0200 |
---|---|---|
committer | Kali Kaneko (leap communications) <kali@leap.se> | 2019-07-03 21:06:54 +0200 |
commit | 575df002b368027761dadd396ec67eacbf741232 (patch) | |
tree | 574c759f45bd6ba4b04e5ea1c8bd0382181e6a3f | |
parent | 38bca5b01b99c386fb23943ea3cb03993a01bffa (diff) |
[bug] temporarily disable polkit check
latest release 0.19.6 included a polkit check.
this check is failing in some setups, leading to an unusable experience.
I'm temporarily disabling the check to be able to have an usable release
until we can debug what's causing the issue.
- Related: #152
-rw-r--r-- | pkg/standalone/launcher_linux.go | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/pkg/standalone/launcher_linux.go b/pkg/standalone/launcher_linux.go index e678de4..763f742 100644 --- a/pkg/standalone/launcher_linux.go +++ b/pkg/standalone/launcher_linux.go @@ -54,23 +54,25 @@ func (l *launcher) close() error { func (l *launcher) check() (helpers bool, priviledge bool, err error) { - isRunning, err := isPolkitRunning() - if err != nil { - return - } - if !isRunning { - polkitPath := getPolkitPath() - if polkitPath == "" { - return true, false, nil - } - cmd := exec.Command("setsid", polkitPath) - err = cmd.Start() + /* + isRunning, err := isPolkitRunning() if err != nil { return } - isRunning, err = isPolkitRunning() - return true, isRunning, err - } + if !isRunning { + polkitPath := getPolkitPath() + if polkitPath == "" { + return true, false, nil + } + cmd := exec.Command("setsid", polkitPath) + err = cmd.Start() + if err != nil { + return + } + isRunning, err = isPolkitRunning() + return true, isRunning, err + } + */ return true, true, nil } |