d835f8b88b89a9e456aea2dabd652351f88ba426
[AGL/documentation.git] / docs / 06_Component_Documentation / Application_Framework / images / start_and_activation.msc
1 #!/usr/bin/mscgen -Tpng
2
3 msc {
4        hscale="1.5";
5
6        u [label = "touch/pointer event" ],
7        s [label = "runtime/shell-client"],
8        a [label = "applaunchd" ],
9        g [label = "gRPC-proxy" ],
10        c [label = "compositor" ],
11        d [label = "libsystemd"];
12
13        |||;
14
15        --- [label = "initial phase - subscribe for signal/status events" ];
16
17        s >> g [label = "subscribe for AGL compositor AppStatusState"];
18        g >> c [label = "listen for app_state Wayland events"];
19
20        --- [label = "handling start-up & activation" ];
21
22        u => s [label = "tapShortCut(appid)" ];
23        s => a [label = "StartApplication(appid)"];
24        a => d [label = "start application's systemd unit"];
25        d => a [label = "return status from starting systemd unit"];
26        a => s [label = "StartResponse(status = TRUE)"];
27        c => g [label = "app_state(app_state = APP_STARTED)"];
28        g => s [label = "AppStatusResponse(app_id, APP_STARTED)"];
29        s => c [label = "activate_app(app_id)"];
30 }