运行应用
ll-cli run命令可以启动一个玲珑应用。
查看 ll-cli run命令的帮助信息:
bash
ll-cli run --helpll-cli run命令的帮助信息如下:
text
Usage: ll-cli [options] run com.deepin.demo
Options:
-h, --help Displays help on
commandline options.
--help-all Displays help including Qt
specific options.
--repo-point app repo type to use
--exec </bin/bash> run exec
--no-proxy whether to use dbus proxy
in box
--filter-name <--filter-name=com.deepin.linglong.A dbus name filter to use
ppManager>
--filter-path <--filter-path=/com/deepin/linglong/ dbus path filter to use
PackageManager>
--filter-interface <--filter-interface=com.deepin. dbus interface filter to
linglong.PackageManager> use
Arguments:
run run application
appId application id当应用被正常安装后,使用 ll-cli run命令即可启动:
bash
ll-cli run org.deepin.calculator默认情况下执行run命令会启动最高版本的应用,若需运行指定版本应用,需在 appid后附加对应版本号:
bash
ll-cli run org.deepin.calculator/5.7.21.4默认情况下会使用 ll-dbus-proxy拦截转发 dbus消息,如果不想使用 ll-dbus-proxy,可以使用 --no-dbus-proxy参数:
bash
ll-cli run org.deepin.calculator --no-dbus-proxy使用 ll-cli run命令可以进入指定程序容器环境:
bash
ll-cli run org.deepin.calculator --exec /bin/bash进入后可执行 shell 命令,如 gdb、strace、ls、find等。
由于玲珑应用都是在容器内运行,无法通过常规的方式直接调试,需要在容器内运行调试工具,如 gdb:
bash
gdb /opt/apps/org.deepin.calculator/files/bin/deepin-calculator该路径为容器内应用程序的绝对路径。
玲珑应用 release版本更多调试信息请参考:常见运行问题。