From 575df002b368027761dadd396ec67eacbf741232 Mon Sep 17 00:00:00 2001 From: "Kali Kaneko (leap communications)" Date: Wed, 3 Jul 2019 21:06:44 +0200 Subject: [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 --- pkg/standalone/launcher_linux.go | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) (limited to 'pkg') 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 } -- cgit v1.2.3