From 657b92b02078688fcdaff715067ddfc260238b01 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Wed, 23 Mar 2022 12:18:17 -0600 Subject: [PATCH] Don't prompt for keychain access when launching from a pty Co-Authored-By: Max Brunsfeld --- crates/zed/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/zed/src/main.rs b/crates/zed/src/main.rs index 29dfd314273e20f9142e66dfaf847a634e4a8271..af0c98506d38480003796c6321c5dea7c5765d1d 100644 --- a/crates/zed/src/main.rs +++ b/crates/zed/src/main.rs @@ -81,7 +81,7 @@ fn main() { cx.spawn({ let client = client.clone(); |cx| async move { - if client.has_keychain_credentials(&cx) { + if !stdout_is_a_pty() && client.has_keychain_credentials(&cx) { client.authenticate_and_connect(true, &cx).await?; } Ok::<_, anyhow::Error>(())