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