Always call Login from UI with the desktop flag (#1200)

This commit is contained in:
Misha Bragin 2023-10-06 18:28:46 +02:00 committed by GitHub
parent 5781ec7a8e
commit af6fdd3af2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -0,0 +1,5 @@
#!/bin/bash
sudo apt update
sudo apt remove gir1.2-appindicator3-0.1
sudo apt install -y libayatana-appindicator3-dev
go build

View File

@ -234,7 +234,9 @@ func (s *serviceClient) login() error {
return err return err
} }
loginResp, err := conn.Login(s.ctx, &proto.LoginRequest{}) loginResp, err := conn.Login(s.ctx, &proto.LoginRequest{
IsLinuxDesktopClient: runtime.GOOS == "linux",
})
if err != nil { if err != nil {
log.Errorf("login to management URL with: %v", err) log.Errorf("login to management URL with: %v", err)
return err return err