Skip to content

assertion when a printer is not connected #21

Description

@codesardine

Error:
Assertion 'close_nointr(fd) != -EBADF' failed at src/basic/fd-util.c:73, function safe_close(). Aborting.

Code:
from gi.repository import Ldm

manager = Ldm.Manager()
printers = manager.get_devices(Ldm.DeviceType.USB | Ldm.DeviceType.PRINTER)
print(printers)

removing Ldm.DeviceType.PRINTER works as usb devices are always present, maybe return a empty list.

Not running solus not sure if that will make a deference due to lib versions.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions