Bug 152954 - Default Printer not recognised
Summary: Default Printer not recognised
Status: NEEDINFO
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
7.3.7.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Print-Dialog
  Show dependency treegraph
 
Reported: 2023-01-10 03:40 UTC by soft.tea9461
Modified: 2024-04-20 13:07 UTC (History)
2 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 soft.tea9461 2023-01-10 03:40:39 UTC
Description:
Issue with Ubuntu MATE 22.04 LTS - fully up to date. [Kernel: 5.15.0.57]

Default printer set in OS settings not recognised by Libre Office - writer, and Calc - but I suspect all of the LO suite. 

Libre Office always chooses printer at top of alpha-numeric list. 

What ever settings for printer I make via CUPs [2.4.1], or Admin panel, etc, it always reverts to non-default printer, ie. the top listed alpha-numerically. See below:

[1. HP Deskjet360 - WiFi]
[2. Kyocera P2040DN - Ethernet System Default Printer]

Steps to Reproduce:
1.File/Print from menu bar at the top.
2.Default printer not selected, it's always the first in alpha-numeric list
3.Select (default) printer via drop-down box - for me it's the second choice.
4.Prints with selected printer.

Actual Results:
Default printer not recognised and not selected by default choice. Instead Libre Office selects printer from top of alpha-numeric list.

Expected Results:
Expect Libre Office to automatically choose the system default printer.


Reproducible: Always

All other programs/applications behave as they should in regards to printer selection of default.

Computer is connected via Ethernet to LAN.

Both printers have IP addresses assigned via MAC address in router.
Thank-you.
Comment 1 Stéphane Guillou (stragu) 2023-05-11 22:09:11 UTC
I can't reproduce on Ubuntu 20.04 with GNOME 3.36.8, with a printer set as default in the GNOME settings, and LO:

Version: 7.3.7.2 / LibreOffice Community
Build ID: e114eadc50a9ff8d8c8a0567d6da8f454beeb84f
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Nor in a recent master build:

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 88bd66d258de5fee3d35aba80c61fec49eb2a969
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

My default printer is always selected when reopening the Print dialog (and it is not the first one in the alphanumerically sorted list).

Can you please test again in a currently supported version (preferably 7.5)?
Is it from a new file too? (Because it is possible to select a preferred printer per-file, in File > Printer Settings.)
Comment 2 Fred Olness 2023-11-02 22:19:13 UTC
I am observing the same problem in my system. 

LibreOffice ignores the default printer, and simply takes the first printer alphabetically on the list. 

This is reproducible on my system. 


Ubuntu 22.04.3 LTS
GNOME Shell 42.9

Version: 7.5.6.2 (X86_64) / LibreOffice Community
Build ID: f654817fb68d6d4600d7d2f6b647e47729f55f15
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 3 Stéphane Guillou (stragu) 2024-04-19 13:36:30 UTC
"New" as per comment 2.
Comment 4 Michael Weghorn 2024-04-20 13:07:15 UTC
I cannot reproduce. Note that LibreOffice currently only evaluates printers on start, so any changes to the default printer will only take effect after restarting LibreOffice.

Questions:

1) What is the output when running the command `lpstat -t` in a terminal?
2) What is the printer that is selected?
3) What is the printer you were expecting to be selected?

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 86a73635a8efaedbcf2128501bbc34bf725534b3
CPU threads: 32; OS: Linux 6.6; UI render: default; VCL: qt6 (cairo+wayland)
Locale: en-GB (en_GB.UTF-8); UI: en-US
Calc: CL threaded