Skip to content

Commit

Permalink
Check for systray error: unable to init instance: Unspecified error
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaMahany committed Sep 9, 2024
1 parent 3293600 commit 6e89743
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ee/desktop/runner/runner_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ func osversion() (string, error) {

// logIndicatesSystrayNeedsRestart checks to see if the log line contains
// "tray not ready yet", which indicates that the systray had an irrecoverable
// error during initialization and requires restart.
// error during initialization and requires restart. Sometimes the tray may
// also fail to initialize with "Unspecified error", so we check for the generic
// initialization failed message as well.
func logIndicatesSystrayNeedsRestart(logLine string) bool {
return strings.Contains(logLine, systray.ErrTrayNotReadyYet.Error())
return strings.Contains(logLine, systray.ErrTrayNotReadyYet.Error()) ||
strings.Contains(logLine, "systray error: unable to init instance")
}

0 comments on commit 6e89743

Please sign in to comment.