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 143628 - Gnome-print doesn't display share printers if no printer is configured
Gnome-print doesn't display share printers if no printer is configured
Status: RESOLVED NOTABUG
Product: gnome-print
Classification: Deprecated
Component: general
2.5.x
Other Linux
: Normal normal
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2004-06-03 05:53 UTC by Rodd Clarkson
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Rodd Clarkson 2004-06-03 05:53:35 UTC
Yeah, I know the summary doesn't sound like it makes sense.  Let me explain.

The set up involves two Linux desktops, a HP Laser Jet (with Jet Direct) and a
HP DesignJet printer connected to a linux server.  All the linux boxen are using
cups.

The HP DesignJet is shared using the server, and can be auto-detected using cups.

The HP LaserJet is configured using desktop 1 with two configurations (hplj4mv
at 300x300DPI and hplj4mv-hq at 600x600DPI).  These configurations are set up to
be shared using Cups.

The final desktop (2) hasn't had any printers configured, but can see (and print
to) the two printers above (or really three as one has two profiles).

When I open a gnome-print dialog on desktop 1 (using file > print... in gedit
for example) the three printers show up in the Printer Field along with 'Create
a PDF' and 'Generic Postscript'.

When I open a gnome-print dialog on desktop 2 the three printers don't show up
at all.

I'm assuming that this is because no printer has been configured locally, but
given that shared printers are showing up on desktop 1 I can't see why they
aren't showing on desktop 2 too.
Comment 1 Andreas J. Guelzow 2004-06-03 05:59:33 UTC
gnome-print is simply showing the printer known to cups at the time the
application starts. 

Are those printers in fact visible on desktop 2 using "lpq -P printername"?

Comment 2 Rodd Clarkson 2004-06-03 06:22:37 UTC
All three printers show using "lpq -P printername".

[rodd@clownfish shareappeal.org.au]$ lpq -P hplj4mv
hplj4mv is ready
no entries
[rodd@clownfish shareappeal.org.au]$ lpq -P hplj4mv-hq
hplj4mv-hq is ready
no entries
[rodd@clownfish shareappeal.org.au]$ lpq -P hpdj750c
hpdj750c is ready
no entries


However, I restarted gedit and then started gpdf (which I haven't used at all)
and neither showed these printers in the print dialog
Comment 3 Rodd Clarkson 2004-06-03 06:43:28 UTC
I've also tried restarting my desktop, with no luck either.
Comment 4 Andreas J. Guelzow 2004-06-09 23:40:51 UTC
On desktop 2 which printer entries do you have in the print dialog:

Generic Postcript
PDF File

anything else?
Comment 5 Rodd Clarkson 2004-06-09 23:53:15 UTC
Just these two.

Generic Postscript
Create a PDF Document
Comment 6 Andreas J. Guelzow 2004-06-10 01:53:46 UTC
If you only get those two entries we apparently get no printers from cups. Which
version(s) of libcups are you using on the two machines? 

Comment 7 Andreas J. Guelzow 2004-06-10 02:03:57 UTC
Would you feel comfortable to compile libgnomeprint from cvs (with a slight
modification) to help in the debugging of this problem?
Comment 8 Rodd Clarkson 2004-06-10 02:16:12 UTC
I'm using the follow versions of cups (as part of FC2)

$ rpm -qa | grep cups
libgnomecups-0.1.6-7
cups-libs-1.1.20-11.1
gimp-print-cups-4.2.6-11
cups-1.1.20-11.1

I'm comfortable with downloading CVS and compiling (I use garnome for my
builds).  Tell me what to grab.
Comment 9 Andreas J. Guelzow 2004-06-10 03:29:58 UTC
Okay, from gnome cvs please get module libgnomeprint branch gnome-2-6
We should first see whether the problem persists with the release version. If it
does we will include some debug spew in the cups module of libgnomeprint.
Comment 10 Rodd Clarkson 2004-06-29 23:28:27 UTC
I'm going to mark this "NOT A BUG" just as soon as I stop banging my head
against a brick wall.

<announcer> ... and the award for most stupid idiot goes to Rodd Clarkson
for...</announcer>

It turns out that all I needed to do was install cups-devel before compiling
libgnomeprint.  That's right.  So flaming obvious that it should have just been
apparent from the get go.

It even indicates this at the end of running ./configure.