Take the graphical session answer from the caller instead of the daemon environment

This commit is contained in:
Viktor Liu
2026-08-12 20:57:59 +02:00
parent db9fcf39ef
commit f27a0935bf
10 changed files with 164 additions and 43 deletions
+2 -1
View File
@@ -58,7 +58,8 @@ func (s *Session) RequestExtend(ctx context.Context, p ExtendStartParams) (Exten
return ExtendStartResult{}, err
}
req := &proto.RequestExtendAuthSessionRequest{}
// a request from the UI implies a graphical session, which the daemon cannot detect itself
req := &proto.RequestExtendAuthSessionRequest{HasGraphicalSession: true}
if p.Hint != "" {
h := p.Hint
req.Hint = &h