[Libreoffice-bugs] [Bug 138200] PRINT DIALOG: Please remove deleted printers

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Dec 1 05:30:54 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=138200

Michael Weghorn <m.weghorn at posteo.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEEDINFO

--- Comment #9 from Michael Weghorn <m.weghorn at posteo.de> ---
(In reply to Todd from comment #6)
> All the printers are local printers
> 
> The problem seems to only be associated with long printer names that are
> only different at the end of the name.
> 
> I created a printer called MickyMouse and Writer picked it up and dumped it
> after I deleted it.
> 
> So, I seems that you may need to increase the string (array of characters)
> you are using to read in the printer names.  But that does not explain why
> you hold on to a defunct name, unless the comparison between old names and
> new names is also not being done on enough characters.

Since other applications show the same issue, and LibreOffice retrieves the
printers from CUPS, I'd be surprised if this was actually a LO problem and not
something on a lower level.

However, I'll be happy to test this further.
Can you give exact steps how to reproduce the issue? Can you reproduce this by
setting up a new local printer with a certain name and then delete it?

At a quick glance, LO uses 'cupsGetDests2' from the CUPS library to retrieve
available printers [1].

Can you run the attached sample program and paste the output here. It also uses
'cupsGetDests2' to retrieve and list printers (but might use different
parameters from what LO does, so the output may vary).

Also, do you have CPD (Common Printing dialog) libraries installed? (In this
case, LibreOffice uses those to retrieve printers instead.)



[1]
https://opengrok.libreoffice.org/xref/core/vcl/unx/generic/printer/cupsmgr.cxx?r=6fc2a300#241

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20201201/335685fb/attachment.htm>


More information about the Libreoffice-bugs mailing list