solus-project / linux-driver-management

Linux Driver Management
https://solus-project.com/
160 stars 19 forks source link

assertion when a printer is not connected #21

Open codesardine opened 3 years ago

codesardine commented 3 years ago

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.