handler_(std::make_shared<EcoreHandler>(parent)),
wl_handler_(new WaylandHandler()),
wp_manager_(new WindowPositionManager()) {
+ const char* fast_launch = getenv("AUL_FAST_LAUNCH");
+ if (fast_launch != nullptr)
+ fast_launch_ = true;
}
private:
std::unique_ptr<WindowPositionManager> wp_manager_;
std::unique_ptr<AppCoreUiThreadBase> thread_;
std::unique_ptr<AppCoreRotation> rotation_;
+ bool fast_launch_ = false;
};
AppCoreUiBase::AppCoreUiBase(unsigned int hint)
impl_->SetWindowPosition(b);
}
- if (impl_->hint_ & HINT_WINDOW_ID_CONTROL)
- impl_->SetAppId();
+ if (!impl_->fast_launch_) {
+ if (impl_->hint_ & HINT_WINDOW_ID_CONTROL)
+ impl_->SetAppId();
+
+ impl_->SetAppInfo();
+ } else {
+ _I("Skip wayland init for fast-launched app");
+ }
- impl_->SetAppInfo();
AppCoreBase::Run(argc, argv);
}