diff --git a/src/anbox/cmds/run.cpp b/src/anbox/cmds/run.cpp index db5754e..3de4d45 100644 --- a/src/anbox/cmds/run.cpp +++ b/src/anbox/cmds/run.cpp @@ -68,9 +68,6 @@ anbox::cmds::Run::Run(const BusFactory& bus_factory) // Just for the purpose to allow QtMir (or unity8) to find this on our /proc/*/cmdline // for proper confinement etc. flag(cli::make_flag(cli::Name{"desktop_file_hint"}, cli::Description{"Desktop file hint for QtMir/Unity8"}, desktop_file_hint_)); - flag(cli::make_flag(cli::Name{"apk"}, cli::Description{"Android application to install on startup"}, apk_)); - flag(cli::make_flag(cli::Name{"package"}, cli::Description{"Specifies the package the activity should be launched from."}, package_)); - flag(cli::make_flag(cli::Name{"activity"}, cli::Description{"Activity to start from specified package"}, activity_)); flag(cli::make_flag(cli::Name{"icon"}, cli::Description{"Icon of the application to run"}, icon_)); action([this](const cli::Command::Context &ctx) { @@ -131,19 +128,6 @@ anbox::cmds::Run::Run(const BusFactory& bus_factory) }); auto server = std::make_shared(pending_calls); - // FIXME Implement a delegate or use signals from properties-cpp - server->on_boot_finished([&](){ - DEBUG("Boot finished."); - dispatcher->dispatch([&]() { - if (!apk_.empty()) { - DEBUG("Installing %s ..", apk_); - android_api_stub->install(apk_); - } - if (!package_.empty() || !activity_.empty()) - android_api_stub->launch(package_, activity_); - }); - }); - return std::make_shared(sender, server, pending_calls); })); diff --git a/src/anbox/cmds/run.h b/src/anbox/cmds/run.h index 526c768..0b887e7 100644 --- a/src/anbox/cmds/run.h +++ b/src/anbox/cmds/run.h @@ -39,9 +39,6 @@ public: private: BusFactory bus_factory_; std::string desktop_file_hint_; - std::string apk_; - std::string package_; - std::string activity_; std::string icon_; }; } // namespace cmds