How to use the udiskie.names function in udiskie

To help you get started, we’ve selected a few udiskie examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github coldfix / udiskie / udiskie / util.py View on Github external
def _get_all_devices():
    obj = system_bus.get_object(names.UDISKS_OBJECT,
                                names.UDISKS_OBJECT_PATH)
    return obj.EnumerateDevices(dbus_interface=names.UDISKS_INTERFACE)
github coldfix / udiskie / udiskie / util.py View on Github external
def _get_property(device, prop):
    device_obj = system_bus.get_object(names.UDISKS_OBJECT, device)
    return device_obj.Get(names.UDISKS_DEVICE_INTERFACE, prop, dbus_interface=names.DBUS_PROPS_INTERFACE)
github coldfix / udiskie / udiskie / util.py View on Github external
def _get_property(device, prop):
    device_obj = system_bus.get_object(names.UDISKS_OBJECT, device)
    return device_obj.Get(names.UDISKS_DEVICE_INTERFACE, prop, dbus_interface=names.DBUS_PROPS_INTERFACE)
github coldfix / udiskie / udiskie / util.py View on Github external
def _get_all_devices():
    obj = system_bus.get_object(names.UDISKS_OBJECT,
                                names.UDISKS_OBJECT_PATH)
    return obj.EnumerateDevices(dbus_interface=names.UDISKS_INTERFACE)