package main import ( "log" "os" "path/filepath" "git.davoryn.de/calic/claude-statusline/internal/tray" ) func main() { // Log to file next to the executable exe, _ := os.Executable() logPath := filepath.Join(filepath.Dir(exe), "widget.log") f, err := os.OpenFile(logPath, os.O_CREATE|os.O_WRONLY|os.O_TRUNC, 0o644) if err == nil { log.SetOutput(f) defer f.Close() } log.Println("widget starting") tray.Run() log.Println("widget exited") }