Improve probo-agent tray icon and enrollment menu
Replace the placeholder orange-circle tray icon with the monochrome Probo logo used in auditor-mode. On macOS, show the icon only (no menu bar title); keep the title on Windows. Restructure the context menu: status rows with colored indicators, an Enroll via… submenu for region selection, and a clearer About label. Surface enrollment errors in native dialogs instead of stderr. Fix self-hosted enrollment on macOS by reading the hostname from osascript's returned value; the default dialog output order broke URL parsing and silently skipped opening the browser. Signed-off-by: Ludovic Vielle <ludovic@probo.com>
This commit is contained in:
@@ -39,3 +39,16 @@ func showAbout(version string) {
|
||||
)
|
||||
_ = exec.Command(path, "-e", script).Run()
|
||||
}
|
||||
|
||||
func showEnrollmentError(message string) {
|
||||
path, ok := osascriptPath()
|
||||
if !ok {
|
||||
return
|
||||
}
|
||||
|
||||
script := fmt.Sprintf(
|
||||
`display alert "Probo Device Posture Agent" message %q buttons {"OK"} default button "OK"`,
|
||||
message,
|
||||
)
|
||||
_ = exec.Command(path, "-e", script).Run()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user