Closed Bug 118156 Opened 23 years ago Closed 23 years ago

Need per printer name print commands for PostScript module

Categories

(Core :: Printing: Output, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla0.9.9

People

(Reporter: ewv, Assigned: roland.mainz)

References

Details

Right now all printers default on linux to using lpr as the print command. This should be configurable for each print defined. For instance, I may want to define gv as a "printer" and I definitely want to define kprinter as a "printer" which gives me lots of other options, like Fax, E-mail PDF, etc.
Accepting... Setting milestone 0.9.9 for now, but I'll try to implement this earlier ...
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.9
Changing the "print command" under printer properties in linux only works for the current session also, with the command returning to the default command on restarting mozilla (lpr...). The relationship with this enhancement request is that the default printer should be stored in the profile.
Previous versions of mozilla (0.9.6?) used to store the printer command between invokations in: user_pref("print.print_command", "lpr"); Newer versions (Build ID 2002020415) no longer re-write this user-pref. I discovered this because I'd previously changed the print command using the UI to "lpr -Pyew" to use another printer temporarilly. It correctly got memorised because I was using the older mozilla, but now I've upgraded to 0.9.8: changing the print command in the UI does not update the prefs file. Manually editing the files solved the problem for me, but I'd also like to change the paper size to A4 by default.
Seems it doesnt store the printer page settings (letter/a4 etc.) either.
Bug 125078 ("Implement InitPrintSettingsFromPrinter for GTK+/Xlib") will allow to populate the print dialog with per-printer print commands, too...
Depends on: 125078
Fixed by patch for bug 125078 ("Implement InitPrintSettingsFromPrinter for GTK+/Xlib"). "print_command" can now be set in a per printer-specific manner, e.g. |pref("print.postscript.printer_foobar.print_command", "psview /dev/stdin");| sets the print command for the printer "foobar" only to "psview /dev/stdin", overriding the default in unix.js Marking bug as FIXED.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Eric/Roland, can you please verify this bug
QA Contact: sujay → Roland.Mainz
You need to log in before you can comment on or make changes to this bug.