From c58c55e6278cadcb0730a4fe615d641f55c7e901 Mon Sep 17 00:00:00 2001 From: rope Date: Wed, 19 Aug 2026 20:40:52 +0100 Subject: [PATCH] hyprland: back to ghostty -e yazi, +new-window corrupts the forwarded command --- settings/hyprland.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/settings/hyprland.nix b/settings/hyprland.nix index d64313a..dda65a7 100644 --- a/settings/hyprland.nix +++ b/settings/hyprland.nix @@ -448,12 +448,11 @@ in -- away on Super+N — it is the only one of the two that can drag -- a file into a browser. -- - -- +new-window, not `-e yazi`: -e force-sets gtk-single-instance=false - -- so the CLI args are respected, which means every press builds a - -- whole second Ghostty application — GTK init, config parse, font - -- discovery, renderer setup. +new-window instead asks the running - -- instance over D-Bus to open a window, and forwards --command. - hl.bind(mod .. " + E", hl.dsp.exec_cmd("ghostty +new-window --working-directory=~/ --command=yazi")) + -- Not `ghostty +new-window --command=yazi`: 1.3.1 corrupts the + -- forwarded command over IPC (ghostty#11356) — the window opens + -- and /bin/sh is handed binary garbage — and a D-Bus-activated + -- instance comes up without HYPRLAND_INSTANCE_SIGNATURE. + hl.bind(mod .. " + E", hl.dsp.exec_cmd("ghostty -e yazi")) hl.bind(mod .. " + N", hl.dsp.exec_cmd("nemo")) hl.bind(mod .. " + R", hl.dsp.exec_cmd("${pkgs.quickshell}/bin/qs ipc call launcher toggle")) hl.bind(mod .. " + Q", hl.dsp.window.close())