File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ package systray
21
21
22
22
import (
23
23
"os"
24
+ "runtime"
24
25
25
26
log "github.com/sirupsen/logrus"
26
27
@@ -65,7 +66,13 @@ func (s *Systray) start() {
65
66
s .updateMenuItem (mRmCrashes , config .LogsIsEmpty ())
66
67
67
68
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
+ }
69
76
70
77
// Add pause/quit
71
78
mPause := systray .AddMenuItem ("Pause Agent" , "" )
You can’t perform that action at this time.
0 commit comments