Terminal: fix Alacritty detection on macOS

This commit is contained in:
李通洲
2022-09-21 15:15:36 +08:00
parent 664017ba81
commit fa065c1040
+7
View File
@@ -130,6 +130,13 @@ static void getTerminalFromEnv(FFTerminalShellResult* result)
getenv("WT_PROFILE_ID") != NULL
)) term = "Windows Terminal";
//Alacritty
if(!ffStrSet(term) && (
getenv("ALACRITTY_SOCKET") != NULL ||
getenv("ALACRITTY_LOG") != NULL ||
getenv("ALACRITTY_WINDOW_ID") != NULL
)) term = "Alacritty";
//Termux
if(!ffStrSet(term) && (
getenv("TERMUX_VERSION") != NULL ||