| Summary: | [GTK][Printer] Snippet318 doesn't work on Linux | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Niraj Modi <niraj.modi> | ||||
| Component: | SWT | Assignee: | Platform-SWT-Inbox <platform-swt-inbox> | ||||
| Status: | CLOSED WORKSFORME | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | akurtakov, arunkumar.thondapu, ericwill, sravankumarl | ||||
| Version: | 4.7 | Keywords: | triaged | ||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Niraj Modi
This bug blocks us from verifying fix-patch in bug 498876 on Linux. What happens on Windows if you have no printer installed? ERROR_NO_HANDLES - if there are no valid printers from Printer(PrinterData) is documented in the javadoc even. (In reply to Alexander Kurtakov from comment #2) > What happens on Windows if you have no printer installed? I don't have a configuration handy to try this but IMHO it should be throwing exception similar to comment 0 (In reply to Alexander Kurtakov from comment #3) > ERROR_NO_HANDLES - if there are no valid printers from Printer(PrinterData) > is documented in the javadoc even. On Linux, even if a valid printer is configured Snippet318 doesn't print anything(as tried on Ubuntu16.04), whereas same snippet works on Windows. I see so with no valid printer there is no exception but nothing is printed. I'll try that. I mean with valid printer. I ran this snippet on my Fedora 24 machine that has a printer configured, but not connected. The snippet runs and terminates. Nothing happens, nothing printed to console, no exceptions thrown. I experienced some breakage in printer in Gtk3.16/Gtk3.18. I wonder if this bug (In reply to Eric Williams from comment #7) > I ran this snippet on my Fedora 24 machine that has a printer configured, > but not connected. > > The snippet runs and terminates. Nothing happens, nothing printed to > console, no exceptions thrown. I get the same. I get "no more handles" if I run with older version of GTK, ex 3.16. Created attachment 264245 [details] Updated Snippet318.java (In reply to Eric Williams from comment #7) (In reply to Leo Ufimtsev from comment #8) Thanks Eric/Leo for trying. I updated the Snippet318 to identify when no Default Printer is set and instead print to a PDF file. Can this one be closed now? (In reply to Alexander Kurtakov from comment #10) > Can this one be closed now? No response in awhile so I am closing it. |