Closed
Bug 102276
Opened 23 years ago
Closed 22 years ago
[ps] Need better error handling when lp not defined
Categories
(Core :: Printing: Output, defect, P2)
Tracking
()
RESOLVED
FIXED
Future
People
(Reporter: sujay, Assigned: zhayupeng)
References
Details
Attachments
(1 file)
1.37 KB,
patch
|
roland.mainz
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
from bug 92344
In 4.x if lp is not definted, it throws up an error panel with something
like this: "lpr: lp: unknown printer".
we need to do something like this for 6.x
Comment 1•23 years ago
|
||
mozilla/gfx/public/nsIDeviceContext.h has some error codes for this purpose.
NS_ERROR_GFX_PRINTER_CMD_NOT_FOUND may be the one you're looking for...
Comment 2•23 years ago
|
||
taking
Assignee: dcone → rods
Priority: -- → P1
Target Milestone: --- → mozilla0.9.6
Updated•23 years ago
|
Status: NEW → ASSIGNED
Updated•23 years ago
|
Target Milestone: mozilla0.9.6 → mozilla0.9.7
Updated•23 years ago
|
Target Milestone: mozilla0.9.7 → mozilla0.9.9
Comment 3•23 years ago
|
||
Is this still a problem?
yes this should still be a problem. see how we handle it
for 4.x...
Updated•23 years ago
|
Target Milestone: mozilla0.9.9 → mozilla1.2
Updated•23 years ago
|
Priority: P1 → P2
Target Milestone: mozilla1.2 → Future
Who have idea on how to get error when lp/lpr not defined?
I checked these code:
pipe = popen(mPrintSetup->print_cmd, "w");
The popen will always return no-NULL even command not found. And errno is always 0.
Shall I check the file exists for lp/lpr? I don't think it's a good idea since
it make things more complex...
Based on Roland(Roland.Mainz@informatik.med.uni-giessen.de)'s patch(attachment
83527 [details] [diff] [review]) in bug 143109, but use errno to determine error.
*** Bug 143109 has been marked as a duplicate of this bug. ***
Updated•23 years ago
|
Summary: need better error handling when lp not defined → [ps] Need better error handling when lp not defined
Comment 10•22 years ago
|
||
Comment on attachment 92355 [details] [diff] [review]
patch
r=Roland.Mainz@informatik.med.uni-giessen.de
Attachment #92355 -
Flags: review+
Comment 11•22 years ago
|
||
Comment on attachment 92355 [details] [diff] [review]
patch
sr=bzbarsky
Attachment #92355 -
Flags: superreview+
Assignee | ||
Comment 12•22 years ago
|
||
checked in trunk
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•