After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 311030 - ppd files cannot be loaded
ppd files cannot be loaded
Status: RESOLVED OBSOLETE
Product: gnome-print
Classification: Deprecated
Component: general
2.10.x
Other Linux
: Normal major
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2005-07-20 16:22 UTC by Andreas J. Guelzow
Modified: 2009-08-11 20:25 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10



Description Andreas J. Guelzow 2005-07-20 16:22:29 UTC
Distribution/Version: debian amd64

bring up the print dialog. On the terminal the following error meassages are
being displayed:

GnomePrintCupsPlugin-Message: The ppd file for the CUPS printer fac could not be
loaded.
GnomePrintCupsPlugin-Message: The ppd file for the CUPS printer fac_duplex could
not be loaded.
GnomePrintCupsPlugin-Message: The ppd file for the CUPS printer lab could not be
loaded.
GnomePrintCupsPlugin-Message: The ppd file for the CUPS printer lab_direct could
not be loaded.


This has to do with the fact that, to avoid any user visible time out issues, we
of course run local cups daemons. libgnomecups apparently cannot handle this
unless one changes the code:

Index: libgnomecups/gnome-cups-printer.c
===================================================================
RCS file: /cvs/gnome/libgnomecups/libgnomecups/gnome-cups-printer.c,v
retrieving revision 1.31
diff -u -r1.31 gnome-cups-printer.c
--- libgnomecups/gnome-cups-printer.c   28 Mar 2005 15:48:35 -0000      1.31
+++ libgnomecups/gnome-cups-printer.c   20 Jul 2005 16:21:30 -0000
@@ -282,7 +282,7 @@
  * that will produce an infinite loop when presented with an invalid
  * hostname.  This will also produce a hang if the remote printer is
  * unavailable and we do a syncronous lookup. */
-static gboolean go_directly_to_printer_when_possible = FALSE;
+static gboolean go_directly_to_printer_when_possible = TRUE;

 static void
 update_attributes (GnomeCupsPrinter *printer)
Comment 1 Kjartan Maraas 2007-02-07 12:32:26 UTC
I think the hostname lookup bug has been fixed in cups so maybe it's safe to remove the comment and add this patch now?
Comment 2 Jody Goldberg 2007-02-07 14:17:30 UTC
The potential for an infinite loop in the server is a severe.  If it is fixed upstream we need to add a version check rather than an unconditional flag.
Comment 3 Ethan 2008-04-18 21:45:28 UTC
Hi,

I am also seeing this error when trying to print from ubuntu-dapper/gnome/gedit.
As it has been some time since the orignal posting, I thought I'd query if this is still the best fix for this or if anyone knows of any patch. Thanks in advance.
Comment 4 André Klapper 2009-08-11 20:20:54 UTC
Which exact GNOME version and distribution is this about?
Is this still an issue in GNOME 2.24/2.26?

Note that gnome-print has been deprecated and superseded by GTK+ printing
functionality since GNOME 2.16. This means that gnome-print is NOT actively
maintained anymore.

If your reported issue is still valid for GTK+ printing, please feel free to
file a bug report against gtk+/printing.
If it is OBSOLETE nowadays, feel free to close this report.