You are not logged in.

#1 2019-10-15 21:34:46

Curly060
Member
Registered: 2015-03-05
Posts: 14

[SOLVED] wine uses WINELPS / LPR instead of CUPS

Hi,

I am trying to persuade Wine to use the CUPS printers. According to the Wine Docs/Arch Wiki, all that is needed for this is a working CUPS installation and in case of win32 architecture the lib32-libcups package.
I do have CUPS and the lib32-libcups package installed and the printers work perfectly fine under Linux (one of them is CUPS-PDF).

Here are the steps to reproduce the problem:
- install base arch system, a working desktop environment, CUPS and wine (important packages: cups, lib32-libcups, wine, wine_gecko, wine-mono)
- configure any CUPS printer (e.g. the PDF printer)
- start Notepad in a clean Wine Prefix:

export WINEARCH=win32
export WINEPREFIX=~/.wine-test
rm -rf $WINEPREFIX
wine notepad

- Now open the printing dialog (Control+P or File/Print...)

Under "printer comment" it says: "WINEPS Printer using LPR"
What I expected is: "CUPS:PDF" (if the printer name was PDF)

The problem with that is, that in this case (wine using LPR) wine will not pick up the various paper sizes that are actually available. But I do have a special label printer which naturally will refuse to print with a wrong paper size set.

If I do the same thing on Ubuntu 19.04 with the official builds from WineHQ (stable and devel), then everything works as expected!

To sum up:
- I have tried both, win32 and win64 wine prefixes, result is always the same
- Same test on Ubuntu 19.04 works perfeclty fine
- I have tried running with WINEDEBUG=+winspool under Ubuntu and Arch, but that didn't give me a clue what the problem might be

Can anyone confirm this? Is there anything I overlooked? Any advice is greatly appreciated!

Cheers, Curly060 =;->

Last edited by Curly060 (2019-11-17 18:39:14)

Offline

#2 2019-10-16 16:43:39

Curly060
Member
Registered: 2015-03-05
Posts: 14

Re: [SOLVED] wine uses WINELPS / LPR instead of CUPS

I found the reason for this:
libcups is not a build dependency. Rebuild wine with libcups installed and it works.

I have created a bug report

Cheers, Curly060 =;->

Mod edit: Don't include auto vote links to bug reports -- V1del

Last edited by V1del (2019-10-16 16:52:14)

Offline

#3 2019-11-16 07:43:36

Curly060
Member
Registered: 2015-03-05
Posts: 14

Re: [SOLVED] wine uses WINELPS / LPR instead of CUPS

Bug was solved. I can't change the title, it would get too long...

Cheers, Curly060 =;->

Offline

#4 2019-11-16 13:00:07

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,969

Re: [SOLVED] wine uses WINELPS / LPR instead of CUPS

I can't change the title, it would get too long...

Shorten it to something like [Solved] Wine uses WINELPS / LPR instead of CUPS


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

Board footer

Powered by FluxBB