summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'pkg')
-rw-r--r--pkg/standalone/launcher_linux.go30
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
}