Skip to content

Commit

Permalink
Always call Login from UI with the desktop flag (#1200)
Browse files Browse the repository at this point in the history
  • Loading branch information
braginini authored Oct 6, 2023
1 parent 5781ec7 commit af6fdd3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions client/ui/build-ui-linux.sh
Original file line number Diff line number Diff line change
@@ -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
4 changes: 3 additions & 1 deletion client/ui/client_ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,9 @@ func (s *serviceClient) login() error {
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 {
log.Errorf("login to management URL with: %v", err)
return err
Expand Down

0 comments on commit af6fdd3

Please sign in to comment.