powerful but friendly backup program that runs in your tray, powered by restic devins.page/restray
go restic system-tray
2

Configure Feed

Select the types of activity you want to include in your feed.

feat: sudo-user fallback

so that the shell works when running with `--system`

intergrav (Jul 2, 2026, 4:29 AM EDT) 050127f5 ce70f236

+10
+10
cmd/restray/restic.go
··· 69 69 if runtime.GOOS == "windows" { 70 70 return "" 71 71 } 72 + if sudoUser := os.Getenv("SUDO_USER"); sudoUser != "" { 73 + out, err := exec.Command("sudo", "-n", "-u", sudoUser, "-i", "which", "restic").Output() 74 + if err == nil { 75 + if p := strings.TrimSpace(string(out)); p != "" { 76 + if _, err := os.Stat(p); err == nil { 77 + return p 78 + } 79 + } 80 + } 81 + } 72 82 shell := os.Getenv("SHELL") 73 83 if shell == "" { 74 84 if runtime.GOOS == "darwin" {