windows-debug: IPP loopback printer helper, Print-to-PDF fallback, debug installer, diag script

This commit is contained in:
Grok Bot (for George) 2026-10-03 18:49:56 -04:00
commit dc37fa76dc

View file

@ -6,6 +6,7 @@ import (
"os"
"os/exec"
"path/filepath"
"runtime"
"strings"
)
@ -83,6 +84,9 @@ func LoadXVeraeToken() (string, error) {
}
}
// macOS Keychain (generic password, account optional)
if runtime.GOOS != "darwin" {
return "", fmt.Errorf("no xVerae- token (set XVERAE_TOKEN or create %s)", filepath.Join(home, ".verae", "xverae-token"))
}
out, err := exec.Command("security", "find-generic-password", "-s", "verae.xVeraeToken", "-w").Output()
if err == nil {
t := strings.TrimSpace(string(out))
@ -144,6 +148,9 @@ func SaveXVeraeToken(token string) error {
return err
}
// Keychain (best-effort): delete old, add new
if runtime.GOOS != "darwin" {
return nil
}
account := os.Getenv("USER")
if account == "" {
account = "verae"