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: NEEDINFO
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-06-12 03:11 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
Dear Aleksandar Pavić,

This bug has been in NEEDINFO status with no change for at least
6 months. Please provide the requested information as soon as
possible and mark the bug as UNCONFIRMED. Due to regular bug
tracker maintenance, if the bug is still in NEEDINFO status with
no change in 30 days the QA team will close the bug as INSUFFICIENTDATA
due to lack of needed information.

For more information about our NEEDINFO policy please read the
wiki located here:
https://wiki.documentfoundation.org/QA/Bugzilla/Fields/Status/NEEDINFO

If you have already provided the requested information, please
mark the bug as UNCONFIRMED so that the QA team knows that the
bug is ready to be confirmed.
 
Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-NeedInfo-Ping