diff options
Diffstat (limited to 'units/bluetooth')
-rw-r--r-- | units/bluetooth/jobs.pxu | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/units/bluetooth/jobs.pxu b/units/bluetooth/jobs.pxu index 3b71e70..f40a6e0 100644 --- a/units/bluetooth/jobs.pxu +++ b/units/bluetooth/jobs.pxu @@ -10,6 +10,22 @@ flags: preserve-locale requires: manifest.has_bt_adapter imports: from com.canonical.plainbox import manifest +id: bluetooth/bluez-controller-detect +category_id: com.canonical.plainbox::bluetooth +_summary: Check bluez lists a controller if rfkill detects one +plugin: shell +user: root +depends: bluetooth/detect +template-engine: jinja2 +requires: + package.name == 'bluez' or snap.name == 'bluez' + {%- if __on_ubuntucore__ %} + connections.slot == 'bluez:service' and connections.plug == '{{ __system_env__["SNAP_NAME"] }}:bluez' + {% endif -%} +command: + bluez_list_adapters.py +estimated_duration: 2s +flags: preserve-locale plugin: shell category_id: com.canonical.plainbox::bluetooth |