Allow user to specifiy which stack an application is launched on

This commit is contained in:
Simon Fels 2017-03-15 17:53:28 +01:00
commit 3fededabd0
23 changed files with 257 additions and 89 deletions

View file

@ -73,10 +73,13 @@ void AndroidApiSkeleton::launch_application(anbox::protobuf::bridge::LaunchAppli
std::vector<std::string> argv = {
"/system/bin/am",
"start",
// Launch any application always in the freeform stack
"--stack", "2",
};
if (request->has_stack()) {
argv.push_back("--stack");
argv.push_back(std::to_string(request->stack()));
}
if (request->has_launch_bounds()) {
argv.push_back("--launch-bounds");
std::stringstream launch_bounds;