From 3f04a19ceef50d4d9c400c95a0d96df1615756ff Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Sat, 28 Mar 2026 17:24:01 -0500 Subject: [PATCH] ghosttyCmd --- modules/programs/ghostty.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/modules/programs/ghostty.nix b/modules/programs/ghostty.nix index 9594303..a7c488e 100644 --- a/modules/programs/ghostty.nix +++ b/modules/programs/ghostty.nix @@ -58,11 +58,16 @@ }; # https://github.com/ghostty-org/ghostty/discussions/3763#discussioncomment-11699970 - xdg.desktopEntries."com.mitchellh.ghostty" = { + xdg.desktopEntries."com.mitchellh.ghostty" = + let + ghosttyCmd = "nixGLMesa ${lib.getExe pkgs.ghostty}"; + in + { name = "Ghostty"; type = "Application"; comment = "A terminal emulator"; - exec = "nixGLMesa ghostty"; + # exec = "nixGLMesa ghostty"; + exec = ghosttyCmd; icon = "com.mitchellh.ghostty"; terminal = false; startupNotify = true; @@ -79,7 +84,8 @@ actions = { new-window = { name = "New Window"; - exec = "nixGLMesa ghostty"; + exec = ghosttyCmd; + # exec = "nixGLMesa ghostty"; }; }; };