Terminal: fix Alacritty detection on macOS

This commit is contained in:
李通洲 committed 2022-09-21 18:10:50 +08:00
1 parent 664017ba81
commit fa065c1040
1 file changed
+7
+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 ||