ghosttyCmd

This commit is contained in:
John Lancaster
2026-03-28 17:24:01 -05:00
parent c61f15b431
commit 3f04a19cee
+9 -3
View File
@@ -58,11 +58,16 @@
}; };
# https://github.com/ghostty-org/ghostty/discussions/3763#discussioncomment-11699970 # 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"; name = "Ghostty";
type = "Application"; type = "Application";
comment = "A terminal emulator"; comment = "A terminal emulator";
exec = "nixGLMesa ghostty"; # exec = "nixGLMesa ghostty";
exec = ghosttyCmd;
icon = "com.mitchellh.ghostty"; icon = "com.mitchellh.ghostty";
terminal = false; terminal = false;
startupNotify = true; startupNotify = true;
@@ -79,7 +84,8 @@
actions = { actions = {
new-window = { new-window = {
name = "New Window"; name = "New Window";
exec = "nixGLMesa ghostty"; exec = ghosttyCmd;
# exec = "nixGLMesa ghostty";
}; };
}; };
}; };