Controller
The appman-controller
is a command-line utility that can be used by the developer, or indirectly by other tools, on the target device to control the application manager without communicating directly with its D-Bus interface.
Note: In order to use this tool, the application manager has to be connected to either a session- or system-bus; don't run it with --dbus none
.
If you are running multiple application manager instances in the same system, you need to tell the controller which instance you are addressing. The default id for any system-ui is appman
, but you can assign custom instance-ids. In addition, a unique number is appended to this configured id to make it possible to disambiguate between instances with the same id.
A list of all currently running instances can be obtained with the list-instances
command.
Note: The appman-controller has to be run under the same user id as the application manager. Otherwise the D-Bus connection will fail. For a possible solution, see the troubleshooting guide.
The --instance-id
option lets you choose which of the running appman instances you want to address. This gives you 3 possibilities:
- You do not specify
--instance-id
at all: if only one appman instance is running, then it will be addressed (ignoring its instance-id). If there are more instances, the tool will stop with an error. - You only specify the base id without the disambiguating number (e.g.
appman
): if only one appman instance using the given base id is running, then it will be addressed. If there are more instances, the tool will stop with an error. - You specify the full id with the disambiguating number (e.g. appman-1): Only the given appman instance will be addressed.
The following commands are available:
Command | Arguments | Description |
---|---|---|
start-application | <application-id>
| Starts the application with application-id within the application manager. |
debug-application | <debug-wrapper-specification>
| Starts the application with application-id within the application manager using a debug-wrapper. For more information, see DebugWrappers. |
stop-application | <application-id> | Stops the application with application-id . |
stop-all-applications | (none) | Stops all applications that are running within the application manager. |
list-applications | (none) | Outputs all available application IDs on the console, one per line. |
show-application | <application-id> | Shows the current metadata for the given application in YAML format. Alternatively, use --json to get the metadata in JSON format instead. |
list-packages | (none) | Outputs all available package IDs on the console, one per line. |
show-package | <package-id> | Shows the current metadata for the given package in YAML format. Alternatively, use --json to get the metadata in JSON format instead. |
install-package | <package> | Installs the package given on the command-line. If the package file is specified as - , the tool tries to read the package from stdin . The following options are supported:
|
remove-package | <package-id> | Removes the package, specified with package-id . The following options are supported:
|
list-installation-tasks | (none) | Lists all active installation tasks. |
cancel-installation-task | <task-id> | Cancels an active installation task, specified with task-id . |
list-installation-locations | (none) | Lists all installaton locations. |
show-installation-location | <installation-location> | Shows details for the specified installation-location in YAML format. Alternatively, use --json to get the location details in JSON format instead. |
list-instances | (none) | Lists the unique instance ids of all currently running application manager instances. |
inject-intent-request | <intent-id>
| Injects an intent request into the application manager for testing or debugging purposes. This only works, if the application manager is running in developmentMode. The parameters have to be supplied as a single argument JSON string - make sure to correctly escape any quotation marks when running from a shell. By default, the injected intent request will have a requesting application id of
Please note that For successful non-broadcast requests, the result will be printed to the console as JSON. |
The appman-controller
naturally supports the standard Unix --help
command-line option.
© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.