-
Notifications
You must be signed in to change notification settings - Fork 204
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
Cannot set temp queue as default destination if there is no permanent queue installed #833
Comments
This is likely a timing issue, but I'd be interested in seeing what "lpstat -p" shows after running the lpoptions command. |
@zdohnal Ping, just trying to close the loop on this... |
I'm sorry for being late:
CUPS 2.4.10 |
OK, so looking at the output - when you set lpoptions to set the default destination, the destination hasn't actually been added at all so there isn't a queue to back it. Seems like we should make sure the local queue exists before saving... |
It works (at least for 2.4.x, master encountered errors, probably related to CI failures on master pipeline), thanks! |
CUPS 2.4.7, Fedora 38
$ lpstat -a
$ lpstat -e
test_linux
$ lpoptions -d test_linux
device-uri=ipps://test%20%40%20linux._ipps._tcp.local/cups printer-info='test @ linux' printer-make-and-model='PostScript Printer' printer-type=25178190
$ lpstat -d
no system default destination
It happens because because we use _cupsGetDests() in cupsSetDests2() for getting printers, but IPP_OP_GET_PRINTERS returns only permanent queues, thus cupsSetDests2() ends because it hits IPP_ERROR_NOT_FOUND.
I'm on the way with fix - I was able to set the default destination when I use cupsGetDests2() instead of _cupsGetDests(), but I was not able to remove the settings with lpoptions -x test_linux - I will look into it further.
The text was updated successfully, but these errors were encountered: