From 16e3fda275360188173af099949e5f17ff632ed0 Mon Sep 17 00:00:00 2001 From: moons Date: Fri, 7 Aug 2026 14:44:48 +0900 Subject: [PATCH] ghostty single instance --- modules/applications/ghostty/home/nixos.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/applications/ghostty/home/nixos.nix b/modules/applications/ghostty/home/nixos.nix index d2b54cb..30aca0b 100644 --- a/modules/applications/ghostty/home/nixos.nix +++ b/modules/applications/ghostty/home/nixos.nix @@ -1,6 +1,12 @@ { inputs, system, ... }: { programs.ghostty = { - systemd.enable = true; + # Labwc's Close action correctly targets one xdg-toplevel, but Ghostty's + # systemd service runs every window in one GTK single-instance process. + # If that process exits while handling the request, every Ghostty window + # disappears together. Keep each launcher invocation independent instead. + systemd.enable = false; package = inputs.ghostty.packages.${system}.default; + + settings.gtk-single-instance = false; }; }