fix(config): enable cgroups for linux only

pull/7606/head
-k 2025-06-16 01:20:59 -04:00 committed by Mitchell Hashimoto
parent 6e190acf31
commit baa41c3291
1 changed files with 4 additions and 1 deletions

View File

@ -2404,7 +2404,10 @@ keybind: Keybinds = .{},
/// * `single-instance` - Enable cgroups only for Ghostty instances launched
/// as single-instance applications (see gtk-single-instance).
///
@"linux-cgroup": LinuxCgroup = .@"single-instance",
@"linux-cgroup": LinuxCgroup = if (builtin.os.tag == .linux)
.@"single-instance"
else
.never,
/// Memory limit for any individual terminal process (tab, split, window,
/// etc.) in bytes. If this is unset then no memory limit will be set.