-
Mozilla - always_print_silent
The local library has a touchscreen kiosk that displays and prints information about the community. One of their goals is to bypass the "Hello children, would you like to print 1 million copies?" print dialog. The information is web based, so I configured Mozilla to run full-screen and added the following to /usr/lib/mozilla/greprefs/all.js
pref("print.always_print_silent", true);
Mozilla comes up without any trace of toolbars or buttons. The web pages use window.print(); javascript links as a replacement for "File,Print" or the actual print button. When a patron clicks a "Print" hyperlink - the following error appears: "There was a problem printing because the paper size you specified is not supported by your printer."
To fix the error I just turn on the toolbars, hit the physical "Print" button, and turn the toolbars back off. The error will not appear until the next reboot or until someone exits Xwindows. That is to say - once you use the actual "Print" button - the javascript print hyperlinks begin working and keep working until the power blinks.
It seems that the Print button initially passes something to the OS that the javascript links cannot. Say for example there is a group of environment variables that start out null until the Print button assigns values to them. Should I look at recompiling Mozilla? Is there a shell script that will set those environment variables ahead of time?
Thanks for reading so far. Here are some questions that may come to mind:
-Have you looked over the about:config settings? Yes. I have set Letter as the default paper size and experimented with some of the other preferences.
-What window manager are you using? None actually. Although the problem is the same whether Mozilla runs by itself or within BlackBox, KDE, etc.
-What about CUPS, can you print from other applications? Printing is not a problem. This seems to be a Mozilla issue.
-Have you tried a different browser? If there is another free browser that supports Flash, runs completely full screen, and prints without any dialog - I am ready to try it out
-What distro are you using? Knoppix installed to a hard drive.
Thanks again. Save the trees!
Similar Threads
-
By turbines in forum General Support
Replies: 2
Last Post: 04-28-2004, 08:51 PM
-
By lavaman094 in forum Hdd Install / Debian / Apt
Replies: 2
Last Post: 11-03-2003, 06:32 AM
-
By Wumpus in forum General Support
Replies: 0
Last Post: 10-21-2003, 06:33 AM
-
By denver1 in forum General Support
Replies: 3
Last Post: 07-20-2003, 12:08 PM
-
By jarjar26 in forum Customising & Remastering
Replies: 0
Last Post: 07-09-2003, 08:37 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

OPNsense pfSense 8-Core Atom C3758 2.2GHz 8GB DDR4 64GB SSD 8x NIC QAT AES VPN
$115.00

pfSense Firewall 16-Core Atom C3958 8GB DDR4 RAM 64GB SSD 8x 1Gbe QAT AES-NI VPN
$184.99

OPNsense pfSense 16-Core Atom C3958 16GB ECC RAM 512GB SSD 8-Port QAT AES-NI VPN
$248.00

NETGEAR ProSafe 8-Port Gigabit VPN Firewall FVS318G NEW IN BOX
$69.99

Fortinet FortiGate 60F FG-60F P24286-03-13 Network Firewall Security Appliance
$155.75

Palo Alto PA-220 Next-Gen Firewall 520-000309-00J
$40.00

Fortinet FortiGate 60F FG-60F UTM UTP License Until 2027 Network Security FW VPN
$219.99

Fortinet FortiGate 80E 12 Ports Firewall Appliance
$20.25

SonicWall TZ280 Firewall 03-SSC-6933 Advanced Edition 3YR NEW SEALED
$999.99

Netgate SG-1100 firewall
$140.00