locking preferences : Margin should be 0
Hi everybody, I'm deployng Firefox with locked preferences in the company where I work for.
In out envyroment I have the need of locking margin preferences (they should be set to 0) ... but it seems possible to set them only for the current printer. For example, if I set margin 0 in my firefox (I have a printer named "Call Center Kyocera fs 1128 ...etc" installed as default), when i look into pref.js I find :
user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_bgcolor", true); user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_bgimages", true); user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_evenpages", true); user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_footercenter", ""); user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_footerleft", ""); user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_footerright", ""); user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_headercenter", ""); user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_headerleft", ""); user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_headerright", ""); user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_in_color", true); user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_margin_bottom", "0"); user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_margin_left", "0"); user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_margin_right", "0"); user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_margin_top", "0"); user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_oddpages", true); user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_orientation", 0); user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_reversed", false); user_pref("printer_Call_Center_-_Kyocera_FS-1128MFP_KX.print_scaling", " 1,00");
The main point is that when I'm deployng Firefox on 100+ client, every client has a different printer, so I'm not able to create a universal mozilla.cfg to lock everyone's margin to 0!
Got some idea how to solve it ?
כל התגובות (1)
The mozilla.cfg is run as a true JavaScript file and thus can contain JavaScript and not only user_pref() calls like prefs.js and user.js.
You could try to come up with JavaScript to modify prefs.js or a user.js file to set those margins.