Function: battery--upower-devices

battery--upower-devices is a byte-compiled function defined in battery.el.gz.

Signature

(battery--upower-devices)

Documentation

List all UPower devices according to battery-upower-device.

Source Code

;; Defined in /usr/src/emacs/lisp/battery.el.gz
(defun battery--upower-devices ()
  "List all UPower devices according to `battery-upower-device'."
  (cond ((stringp battery-upower-device)
         (list battery-upower-device))
        (battery-upower-device)
        ((dbus-ignore-errors
           (dbus-call-method :system battery-upower-service
                             battery-upower-path
                             battery-upower-interface
                             "EnumerateDevices"
                             :timeout 1000)))))