Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assertion when a printer is not connected #21

Open
codesardine opened this issue Jul 4, 2021 · 0 comments
Open

assertion when a printer is not connected #21

codesardine opened this issue Jul 4, 2021 · 0 comments

Comments

@codesardine
Copy link

codesardine commented Jul 4, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant