tree: e82cffbc7624c563ee0b69ac28fd5819789599fb [path history] [tgz]
  1. bin/
  2. examples/
  3. fidl/
  4. lib/
  5. tests/
  6. tools/
  7. BUILD.gn
  8. CONTRIBUTING.md
  9. OWNERS
  10. README.md
src/session/README.md

Session Manager Usage Guide

Build a configuration that boots into a session

fx set core.x64 --with-base=//src/session,//src/session/bin/session_manager:session_manager.config
fx build
fx reboot

Specify which session to launch in session_manager.cml:

"args": [ "-s", "fuchsia-pkg://fuchsia.com/element_session#meta/element_session.cm" ],

To launch a session manually (e.g., if you don't include session_manager.config in --with-base) you can run the following command:

fx shell run fuchsia-pkg://fuchsia.com/component_manager_sfw#meta/component_manager_sfw.cmx fuchsia-pkg://fuchsia.com/session_manager#meta/session_manager.cm

TODO(37237): Multiple calls to run will not work correctly when launching graphical sessions (“display has been claimed by another compositor” - Scenic). This will be resolved by introducing a command line tool for launching sessions “properly.”

To run the tests

Run fx set core.x64 --with-base=//src/session,//src/session/bin/session_manager:session_manager.config --with //src/session:tests to include the tests in the build.

Then run fx run-test session_manager_integration_tests to launch the tests using the Fuchsia Test Framework. Tests can be v1 or v2 components. Every test included in this list needs to expose /svc/fuchsia.test.Suite.