User Session Command
sailfish_device_user_session_commandRun a short command in a device's Sailfish user-session D-Bus environment, capped at 15 seconds; use the async start tool for longer jobs.
Instructions
Run a short command, limited to 15 seconds, with the configured Sailfish user-session D-Bus environment. Use sailfish_device_command_start for anything that may run longer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | Configured device alias or ssh target. When the user says the device is attached over USB, use 'usb' for the default device or 'usb:<name>' when the user supplies a device name. The USB connection trusts that name for device metadata and does not resolve it through DNS. | |
| command | Yes | Command argv to run; shell parsing is not applied. | |
| timeout | No | Command timeout in seconds; long commands must use an async job. | |
| verbose | No | Include full command, stdout, and stderr details for diagnostics. | |
| run_as_user | No | Run through runuser/su as the configured device username. |