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 122741 - The Default cups printer is not set while printing
The Default cups printer is not set while printing
Status: RESOLVED FIXED
Product: gnome-print
Classification: Deprecated
Component: general
CVS
Other Linux
: Normal normal
: ---
Assigned To: Chema Celorio
Chema Celorio
Depends on:
Blocks:
 
 
Reported: 2003-09-19 15:00 UTC by Frederic Crozat
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.3/2.4



Description Frederic Crozat 2003-09-19 15:00:03 UTC
When you want to print something, the default printer selected in
gnome-print dialog is not the default CUPS printer you've set with xpp or
gnome-cups-manager. It is quite problematic on networks with a lot of
printers available..
Comment 1 Andreas J. Guelzow 2003-11-07 00:57:46 UTC
This appears to be a libcups bug rather than a gnomeprint bug.

In my setup, I have 2 printers: lp and work-fac

cupsGetDefault() is supposed to return the default printer name but it
always returns lp even when I have set the default printer to work-fac
with lpoptions or xpp.
Comment 2 Andreas J. Guelzow 2003-11-07 06:51:53 UTC
I have committed a fix (workaround) to cvs HEAD. This is the same
workaround used by xpp, namely using cupsGetDests and its is_default
fields rather than cupsGetDefault.