Setup printers
@hadess
Submitted by Bastien Nocera Link to original bug (#574065)
Description
We'd need to do something similar to what hal-cups-utils does: https://fedorahosted.org/hal-cups-utils/
When the device is setup, we can call the com.redhat.NewPrinterNotification API, passing the device URI as the 'name' argument to NewPrinter(). When the device is removed (eg. through the preferences), we'd need to remove the queue.
When the bluez cups backend can support getting the IEEE1284 for a specific device, we can use something similar to hal-cups-utils (see cupshelpers.ppds.PPDs.getPPDNameFromDeviceID) to guess the PPD for it.
Then we'd call:
lpadmin -p "{NAME}" -v "
{URI}" -m "${PPDNAME}"