You're right - It didn't help.. $ QT_DISABLE_PRINTER_DISCOVERY=1 okular lpr: The printer or class does not exist.