Topmost Window PID
sailfish_device_topmost_pidQueries Lipstick for the current topmost window process ID, so you can identify the foreground app on a Sailfish OS device.
Instructions
Query Lipstick for the current topmost window process id.
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. | |
| timeout | No | Command timeout in seconds. |