Skip to content

Commit a438fed

Browse files
XaytonMatteoPologruto
authored andcommitted
Add "Arduino Agent" to the title of dialogs
1 parent 88495ca commit a438fed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

certificates/certificates.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ func PromptInstallCertsSafari() bool {
285285
if GetDefaultBrowserName() != "Safari" {
286286
return false
287287
}
288-
oscmd := exec.Command("osascript", "-e", "display dialog \"The Arduino Agent needs a local HTTPS certificate to work correctly with Safari.\nIf you use Safari, you need to install it.\" buttons {\"Do not install\", \"Install the certificate for Safari\"} default button 2 with title \"Install Certificates\"")
288+
oscmd := exec.Command("osascript", "-e", "display dialog \"The Arduino Agent needs a local HTTPS certificate to work correctly with Safari.\nIf you use Safari, you need to install it.\" buttons {\"Do not install\", \"Install the certificate for Safari\"} default button 2 with title \"Arduino Agent: Install Certificates\"")
289289
pressed, _ := oscmd.Output()
290290
return string(pressed) == "button returned:Install the certificate for Safari"
291291
}
@@ -295,7 +295,7 @@ func PromptExpiredCerts(certDir *paths.Path) {
295295
if expired, err := isExpired(); err != nil {
296296
log.Errorf("cannot check if certificates are expired something went wrong: %s", err)
297297
} else if expired {
298-
oscmd := exec.Command("osascript", "-e", "display dialog \"The Arduino Agent needs a local HTTPS certificate to work correctly with Safari.\nYour certificate is expired or close to expiration. Do you want to update it?\" buttons {\"Do not update\", \"Update the certificate for Safari\"} default button 2 with title \"Update Certificates\"")
298+
oscmd := exec.Command("osascript", "-e", "display dialog \"The Arduino Agent needs a local HTTPS certificate to work correctly with Safari.\nYour certificate is expired or close to expiration. Do you want to update it?\" buttons {\"Do not update\", \"Update the certificate for Safari\"} default button 2 with title \"Arduino Agent: Update Certificates\"")
299299
if pressed, _ := oscmd.Output(); string(pressed) == "button returned:Update the certificate for Safari" {
300300
err := UninstallCertificates()
301301
if err != nil {

0 commit comments

Comments
 (0)