From 1ef3c79ba84894603386c291cb57d6b125e8753d Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 10 Aug 2024 14:38:20 -0700 Subject: [PATCH] config: quit-after-last-window-closed should be true on Linux This was the behavior on GTK prior to #2021 and I think it makes sense as a default there. --- src/config/Config.zig | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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