diff --git a/orbit/changes/issue-6407-fleet-desktop-log-destination-macos b/orbit/changes/issue-6407-fleet-desktop-log-destination-macos new file mode 100644 index 0000000000..cbb67d8618 --- /dev/null +++ b/orbit/changes/issue-6407-fleet-desktop-log-destination-macos @@ -0,0 +1 @@ +* Updated and corrected the macOS logger destination for Fleet Desktop to ~/Library/Logs diff --git a/orbit/cmd/desktop/desktop.go b/orbit/cmd/desktop/desktop.go index e30dbd3da8..57aed953bb 100644 --- a/orbit/cmd/desktop/desktop.go +++ b/orbit/cmd/desktop/desktop.go @@ -201,7 +201,7 @@ func setupLogs() { // On Unix systems, it returns $XDG_STATE_HOME as specified by // https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html if // non-empty, else $HOME/.local/state. -// On Darwin, it returns $HOME/Library/Log. +// On Darwin, it returns $HOME/Library/Logs. // On Windows, it returns %LocalAppData% // // If the location cannot be determined (for example, $HOME is not defined), @@ -221,7 +221,7 @@ func logDir() (string, error) { if dir == "" { return "", errors.New("$HOME is not defined") } - dir += "/Library/Log" + dir += "/Library/Logs" default: // Unix dir = os.Getenv("XDG_STATE_HOME")