diff --git a/src/config/Config.zig b/src/config/Config.zig index 45fda4aff..4ef7718de 100644 --- a/src/config/Config.zig +++ b/src/config/Config.zig @@ -947,13 +947,16 @@ keybind: Keybinds = .{}, /// true. If set to false, surfaces will close without any confirmation. @"confirm-close-surface": bool = true, -/// Whether or not to quit after the last surface is closed. This -/// defaults to `false`. +/// Whether or not to quit after the last surface is closed. +/// +/// This defaults to `false` on macOS since that is standard behavior for +/// a macOS application. On Linux, this defaults to `true` since that is +/// generally expected behavior. /// /// On Linux, if this is `true`, Ghostty can delay quitting fully until a /// configurable amount of time has passed after the last window is closed. /// See the documentation of `quit-after-last-window-closed-delay`. -@"quit-after-last-window-closed": bool = false, +@"quit-after-last-window-closed": bool = builtin.os.tag == .linux, /// Controls how long Ghostty will stay running after the last open surface has /// been closed. This only has an effect if `quit-after-last-window-closed` is