Skip to content

Commit cac6554

Browse files
committed
disable the generation/install certs menuItem on linux
1 parent 23cd26e commit cac6554

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

systray/systray_real.go

+8-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ package systray
2121

2222
import (
2323
"os"
24+
"runtime"
2425

2526
log "github.com/sirupsen/logrus"
2627

@@ -65,7 +66,13 @@ func (s *Systray) start() {
6566
s.updateMenuItem(mRmCrashes, config.LogsIsEmpty())
6667

6768
mGenCerts := systray.AddMenuItem("Generate and Install HTTPS certificates", "HTTPS Certs")
68-
s.updateMenuItem(mGenCerts, config.CertsExist())
69+
// On linux chrome/firefox the agent works without problems on plain HTTP,
70+
// so we disable the menuItem to generate/install the certificates
71+
if runtime.GOOS == "linux" {
72+
s.updateMenuItem(mGenCerts, true)
73+
} else {
74+
s.updateMenuItem(mGenCerts, config.CertsExist())
75+
}
6976

7077
// Add pause/quit
7178
mPause := systray.AddMenuItem("Pause Agent", "")

0 commit comments

Comments
 (0)