Bug 232009
Summary: | gtk print dialog doesn't show LPR printers | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Dominik 'Rathann' Mierzejewski <dominik> | ||||
Component: | gtk2 | Assignee: | Matthias Clasen <mclasen> | ||||
Status: | CLOSED WONTFIX | QA Contact: | |||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 6 | ||||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2007-07-07 20:48:42 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Dominik 'Rathann' Mierzejewski
2007-03-13 15:40:01 UTC
OK, I have a partial solution. Attached is a patch that enables LPR backend in gtk2, but it only gives me "Print to LPR" entry and not the full printer list. Confirmed to work with both CUPS and LPR. Created attachment 150119 [details]
Don't disable LPR backend even if CUPS is found.
The string you are modifying there is the default value for a GTK+ setting. There is no need to patch gtk+ for this, you can just set the value in your rc file, either $HOME/.gtkrc-2.0 or /etc/gtk-2.0/gtkrc. Just adding the line gtk-print-backends="pdf,cups,lpr" near the top of the file ought to do it. Nothing I can do about the printer listing though, that is just the way the lpr print backend works, and improved lpr support is not really something I am going to have time for. I'd be happy to accept patches though. (In reply to comment #3) > The string you are modifying there is the default value for a GTK+ setting. > There is no need to patch gtk+ for this, you can just set the value in your > rc file, either $HOME/.gtkrc-2.0 or /etc/gtk-2.0/gtkrc. Just adding the line > > gtk-print-backends="pdf,cups,lpr" > > near the top of the file ought to do it. Well, it's something I'd have to do on every machine. Any reason why it cannot be done upstream? > Nothing I can do about the printer listing though, that is just the way the > lpr print backend works, and improved lpr support is not really something > I am going to have time for. I'd be happy to accept patches though. I see. This is a major regression for me, and it'll be tough to fix as I don't know GTK code at all. Now whose bright idea was it to kill this functionality when moving from gnomeprint to gtkprint, I wonder... Fedora is using cups as its native printing system, so it is only natural that we use the cups printbackend by default. I'm NOT suggesting disabling CUPS, I'm merely suggesting re-enabling LPR. What's the problem with that? Having multiple print systems show up in the print dialog is not something we want by default. I'm going to close this bug, since I don't intend to work on it. Feel free to file an enhancement request upstream in bugzilla.gnome.org for making the lpr backend list printers. I'm not going to work on that either, but maybe somebody else wants to. |