デフォルトでは /opt/X11/bin/xterm を起動するようになっているので
❯ defaults read org.xquartz.x11
{
"NSWindow Frame x11_apps" = "1291 362 454 299 0 0 3440 1415 ";
"NSWindow Frame x11_prefs" = "713 152 484 336 0 0 3440 1415 ";
SUHasLaunchedBefore = 1;
SULastCheckTime = "2024-03-18 23:29:35 +0000";
"app_to_run" = "/opt/X11/bin/xterm";
"apps_menu" = (
);
"cache_fonts" = 1;
"done_xinit_check" = 1;
"enable_iglx" = 0;
"login_shell" = "/bin/sh";
"no_auth" = 0;
"nolisten_tcp" = 1;
"startx_script" = "/opt/X11/bin/startx -- /opt/X11/bin/Xquartz";
}
以下のように無害なコマンドに置き換えてあげると良いようです。
❯ defaults write org.xquartz.X11 app_to_run /usr/bin/true
その後は以下のような設定になり xterm は起動しなくなりました。
❯ defaults read org.xquartz.x11
{
"NSWindow Frame x11_apps" = "1291 362 454 299 0 0 3440 1415 ";
"NSWindow Frame x11_prefs" = "713 152 484 336 0 0 3440 1415 ";
SUHasLaunchedBefore = 1;
SULastCheckTime = "2024-03-18 23:29:35 +0000";
"app_to_run" = "/usr/bin/true";
"apps_menu" = (
);
"cache_fonts" = 1;
"done_xinit_check" = 1;
"enable_iglx" = 0;
"login_shell" = "/bin/sh";
"no_auth" = 0;
"nolisten_tcp" = 1;
"startx_script" = "/opt/X11/bin/startx -- /opt/X11/bin/Xquartz";
}