thunderbolt: add policy provider and indicator

Desktop / GNOME / GNOME Shell - Christian Kellner [kellner.me] - 5 February 2018 20:38 EST

We will now basically act as "policy provider" for thunderbolt peripherals by using org.freedesktop.bolt service: when new devices are connect and session is a unlocked user session we will automatically enroll (authorize and store in the database) them. If new devices are connected but the session is locked a message will be shown informing the user that the device needs to be reconnected to properly work. The org.freedesktop.bolt service is provided by the "bolt" daemon.

194040dcb thunderbolt: add policy provider and indicator
js/js-resources.gresource.xml | 1 +
js/ui/panel.js | 2 +
js/ui/status/thunderbolt.js | 341 ++++++++++++++++++++++++++++++++++++++++++
3 files changed, 344 insertions(+)

Upstream: git.gnome.org


  • Share