]>
glassweightruler.freedombox.rocks Git - waydroid.git/blob - tools/actions/status.py
1 # Copyright 2021 Erfan Abdi
2 # SPDX-License-Identifier: GPL-3.0-or-later
6 def print_status(args
):
7 cfg
= tools
.config
.load(args
)
8 if os
.path
.exists(tools
.config
.session_defaults
["config_path"]):
9 session_cfg
= tools
.config
.load_session()
10 print("Session:\tRUNNING")
11 print("Container:\t" + session_cfg
["session"]["state"])
12 print("Vendor type:\t" + cfg
["waydroid"]["vendor_type"])
13 print("Session user:\t{}({})".format(
14 session_cfg
["session"]["user_name"], session_cfg
["session"]["user_id"]))
15 print("Wayland display:\t" +
16 session_cfg
["session"]["wayland_display"])
18 print("Session:\tSTOPPED")
19 print("Vendor type:\t" + cfg
["waydroid"]["vendor_type"])