From 575bc345ca6a8e1085b21b8fdba6f23e0a2e27f4 Mon Sep 17 00:00:00 2001 From: Andy Williams Date: Wed, 3 Jan 2024 17:27:45 +0000 Subject: [PATCH] Fix new lint issues --- wm/auth.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wm/auth.go b/wm/auth.go index ced853fe..ff8f01ce 100644 --- a/wm/auth.go +++ b/wm/auth.go @@ -57,7 +57,7 @@ type ident struct { Details map[string]dbus.Variant } -func (a *auth) BeginAuthentication(action_id, message, icon_name string, details map[string]string, cookie string, ids []ident, sender dbus.Sender) (err *dbus.Error) { +func (a *auth) BeginAuthentication(actionID, message, iconName string, details map[string]string, cookie string, ids []ident, sender dbus.Sender) (err *dbus.Error) { wg := &sync.WaitGroup{} wg.Add(1) pass := widget.NewPasswordEntry() @@ -157,6 +157,7 @@ func (a *auth) CancelAuthentication(cookie string, sender dbus.Sender) (err *dbu return nil } +// StartAuthAgent asks our policy kit agent to start listening for auth requests. func StartAuthAgent() { a := &auth{windows: make(map[string]fyne.Window)} go a.register()