Skip to content

Commit 482bc24

Browse files
XaytonMatteoPologruto
authored andcommitted
Add "Arduino Agent" to the title of dialogs
1 parent b2e4348 commit 482bc24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

certificates/certificates.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ func PromptInstallCertsSafari() bool {
286286
if GetDefaultBrowserName() != "Safari" {
287287
return false
288288
}
289-
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\"")
289+
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\"")
290290
pressed, _ := oscmd.Output()
291291
return string(pressed) == "button returned:Install the certificate for Safari"
292292
}
@@ -296,7 +296,7 @@ func PromptExpiredCerts(certDir *paths.Path) {
296296
if expired, err := isExpired(); err != nil {
297297
log.Errorf("cannot check if certificates are expired something went wrong: %s", err)
298298
} else if expired {
299-
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\"")
299+
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\"")
300300
if pressed, _ := oscmd.Output(); string(pressed) == "button returned:Update the certificate for Safari" {
301301
err := UninstallCertificates()
302302
if err != nil {

0 commit comments

Comments
 (0)