src: Don't show startup information when opening a file
Follow-up to #3317
This commit is contained in:
parent
e9cf0f23f2
commit
7790e31eb8
|
@ -1164,7 +1164,8 @@ int main(int argc, char* argv[])
|
||||||
auto flags = (ignore_kakrc ? ServerFlags::IgnoreKakrc : ServerFlags::None) |
|
auto flags = (ignore_kakrc ? ServerFlags::IgnoreKakrc : ServerFlags::None) |
|
||||||
(parser.get_switch("d") ? ServerFlags::Daemon : ServerFlags::None) |
|
(parser.get_switch("d") ? ServerFlags::Daemon : ServerFlags::None) |
|
||||||
(parser.get_switch("ro") ? ServerFlags::ReadOnly : ServerFlags::None) |
|
(parser.get_switch("ro") ? ServerFlags::ReadOnly : ServerFlags::None) |
|
||||||
((argc == 2 and ignore_kakrc) and isatty(0) ? ServerFlags::StartupInfo : ServerFlags::None);
|
((argc == 1 or (ignore_kakrc and argc == 2))
|
||||||
|
and isatty(0) ? ServerFlags::StartupInfo : ServerFlags::None);
|
||||||
auto debug_flags = option_from_string(Meta::Type<DebugFlags>{}, parser.get_switch("debug").value_or(""));
|
auto debug_flags = option_from_string(Meta::Type<DebugFlags>{}, parser.get_switch("debug").value_or(""));
|
||||||
return run_server(session, server_init, client_init, init_coord, flags, ui_type, debug_flags, files);
|
return run_server(session, server_init, client_init, init_coord, flags, ui_type, debug_flags, files);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user