diff --git a/shell/platform/linux/main_linux.cc b/shell/platform/linux/main_linux.cc index 5f71f801e..3d4164d48 100644 --- a/shell/platform/linux/main_linux.cc +++ b/shell/platform/linux/main_linux.cc @@ -47,21 +47,19 @@ int RunInteractive() { mojo::embedder::Init(mojo::embedder::CreateSimplePlatformSupport()); shell::Shell::InitStandalone(); - auto args = command_line.GetArgs(); - if (args.empty()) - return 1; - std::string bundle_path = command_line.GetSwitchValueASCII(shell::switches::kFLX); if (bundle_path.empty()) { // Alternatively, use the first positional argument. + auto args = command_line.GetArgs(); + if (args.empty()) + return 1; bundle_path = args[0]; } - if (bundle_path.empty()) { + if (bundle_path.empty()) return 1; - } std::unique_ptr platform_view( new shell::PlatformViewGLFW());