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; }; }