Allow user to specifiy which stack an application is launched on
This commit is contained in:
parent
2d1cfea345
commit
3fededabd0
23 changed files with 257 additions and 89 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue