Bug 400512

Summary: KDE print dialog does not read printer's default duplex printing property
Product: [Frameworks and Libraries] print-manager Reporter: Miguel Carmona <miguel>
Component: generalAssignee: Daniel Nicoletti <dantti12>
Status: RESOLVED UPSTREAM    
Severity: normal CC: aacid, jr, nate, neon-bugs-null, sitter
Priority: NOR Keywords: usability
Version First Reported In: 18.04   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: Qt 5.12
Sentry Crash Report:
Attachments: screenshots

Description Miguel Carmona 2018-10-31 13:20:53 UTC
Created attachment 116002 [details]
screenshots

SUMMARY

KDE applications not read printing duplex properties.
GNOME apps yes read.
This happens in neon 18.04 and also it happened in neon 16.04
One year ago, I worked with opensuse and it never occurred.

STEPS TO REPRODUCE
1. Change duplex properties of a printer
2. Go to some KDE apps and print. Not working duplex (checked in kwrite, kate and okular)
3. Go to some GNOME apps and print duplex ok (checked in libreoffice and gscan2pdf)

OBSERVED RESULT
localhost:631 show ok duplex properties of printer
If I start a printing preview from printing section of systemsettings, it print duplex ok.

EXPECTED RESULT


SOFTWARE VERSIONS
(available in About System)
KDE Plasma Version: 5.14.2
KDE Frameworks Version: 5.51.0
Qt Version: 5.11.2

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2018-11-01 19:08:00 UTC
Does the printer configuration utility not save the settings? In other words, if you set a property, save, quit, and then open it again, is the property still set the correct way, or did it forget?
Comment 2 Miguel Carmona 2018-11-02 10:17:42 UTC
(In reply to Nate Graham from comment #1)
> Does the printer configuration utility not save the settings? In other
> words, if you set a property, save, quit, and then open it again, is the
> property still set the correct way, or did it forget?

When I change some property, it saved correctly and keep if I close an open it again. If I check in localhost:631 all properties is like systemsettings.

Other properties like media size or inputslot work fine and it is ok when I print from some app (KDE or other).
But not duplex property. It work in gnome apps but not in kde apps (see screenshots [attachment 116002 [details]])
Comment 3 Nate Graham 2018-11-02 14:25:45 UTC
Thanks for the info. Looks like this isn't the same bug, then. Not sure where the KDE print dialog code lives, or whether this could be a Qt issue. Albert, do you have any ideas?
Comment 4 Albert Astals Cid 2018-11-02 22:23:11 UTC
There's no such thing as a KDE print dialog. Qt does it all.

The fix for duplex value being set to the correct value is 
https://code.qt.io/cgit/qt/qtbase.git/patch/?id=fa854f214a3c812e5548ff55d179dd07ef99053b
and will be available in Qt 5.12
Comment 5 Nate Graham 2018-11-02 22:26:35 UTC
Ah, perfect, thanks Albert! I had a feeling you'd know. :)