Comment 8 for bug 82674

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Detecting all cups-pdf devices is easy, to take down all these queues simply do

for q in `LC_ALL=C lpstat -v | grep 'cups-pdf:/' | cut -d ':' -f 1 | cut -d ' ' -f 3`; do
   lpadmin -x $q
done

For setting the PDF printer as default check at first whether there is already a default printer with "LC_ALL=C lpstat -d | grep 'system default destination:'" and set PDF as the default printer only if there is no default printer yet.

You do not restart CUPS when adding or removing printers with the "lpadmin" command.