Bug 152695 - Display only permanent printers chosen in system-config-printer or cups (Linux)
Summary: Display only permanent printers chosen in system-config-printer or cups (Linux)
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
7.0.6.2 release
Hardware: All Linux (All)
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Print-Dialog
  Show dependency treegraph
 
Reported: 2022-12-27 08:25 UTC by Aleksandar Pavić
Modified: 2025-11-25 15:33 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aleksandar Pavić 2022-12-27 08:25:19 UTC
Description:
Libreoffice is displaying all printers discovered by

lpstat -l -e

command, which can be huge list on corporate networks.

Currently linuxes lets you configure printers via
system-config-printer 
or cups so only choosen printers are available.

This works in Google chrome and others.



Steps to Reproduce:
1. Print document
2.
3.

Actual Results:
Displays all printers available on LAN network

Expected Results:
Display only printers configured via system-config-printer or cups, not all from avahi.

So lpstat -l -e commands lits permanent at printers which should be visible in print dialog.
 


Reproducible: Always


User Profile Reset: No

Additional Info:
This is common problem, lot's of questions on askubuntu and similar websites.
Comment 1 Buovjaga 2024-04-05 12:23:13 UTC
Sounds reasonable -> NEW
Comment 2 Michael Weghorn 2024-12-13 18:27:57 UTC
I'm a bit unsure whether never showing auto-discovered printers wouldn't be problematic for others, in particular since, IIUC, the OpenPrinting direction seems to be more towards making things "just work, without the need to configure anything".

At a quick glance into the source code, `CUPSManager::runDests` uses `cupsGetDests2` [1] to get destinations.

I'm wondering whether that would always return all printers or it isn't rather something that depends on the local CUPS configuration.

What distro and CUPS version is this? Do you have cups-browsed (or similar) running?

[1] https://www.cups.org/doc/cupspm.html#cupsGetDests2
Comment 3 QA Administrators 2025-06-12 03:11:04 UTC Comment hidden (obsolete, spam)
Comment 4 QA Administrators 2025-11-25 15:33:57 UTC
Dear Aleksandar Pavić,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-FollowUp