From 2b5fafa909730df498fa5ab2cc2b0ec1243aa22f Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 8 Jun 2017 10:03:07 +0100 Subject: [PATCH] Do not show startup info when piping into kak Fixes #1340 --- src/main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cc b/src/main.cc index af7f62e1..cec1186c 100644 --- a/src/main.cc +++ b/src/main.cc @@ -967,7 +967,7 @@ int main(int argc, char* argv[]) auto flags = (parser.get_switch("n") ? ServerFlags::IgnoreKakrc : ServerFlags::None) | (parser.get_switch("d") ? ServerFlags::Daemon : ServerFlags::None) | (parser.get_switch("ro") ? ServerFlags::ReadOnly : ServerFlags::None) | - (argc == 1 ? ServerFlags::StartupInfo : ServerFlags::None); + (argc == 1 and isatty(0) ? ServerFlags::StartupInfo : ServerFlags::None); return run_server(session, server_init, client_init, init_coord, flags, ui_type, files); } catch (convert_to_client_mode& convert)