[Bug 230814] New: [KDE4] Improve CUPS detection in KCupsOptionsWidget
Stefan Kiesler
heavymetal at gmx.de
Mon Mar 15 10:27:10 GMT 2010
https://bugs.kde.org/show_bug.cgi?id=230814
Summary: [KDE4] Improve CUPS detection in KCupsOptionsWidget
Product: kde
Version: unspecified
Platform: Gentoo Packages
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
AssignedTo: unassigned-bugs at kde.org
ReportedBy: heavymetal at gmx.de
Version: (using KDE 4.3.5)
Compiler: gcc 4.3.4
OS: Linux
Installed from: Gentoo Packages
Important options are missing from the KDE4 print dialog when using a remote
CUPS server instead of a local printer.
KCupsOptionsWidget::cupsAvailable() only checks for a running socket on
localhost:631, instead it should respect the client CUPS configuration and poll
the configured server (localhost or remote).
Here's the current (as of KDE 4.3.5) snippet of cupsAvailable() in
/kdeui/dialogs/kcupsoptionswidget_p.cpp:
bool KCupsOptionsWidget::cupsAvailable()
{
// Ideally we would have access to the private Qt method
// QCUPSSupport::cupsAvailable() to do this as it is very complex routine,
// instead just take the simplest case of if we can connect to port 631
// then assume CUPS must be running and used by Qt.
QTcpSocket qsock;
qsock.connectToHost("localhost", 631);
bool rtn = qsock.waitForConnected() && qsock.isValid();
qsock.abort();
return rtn;
}
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Unassigned-bugs
mailing list