Please see my blog post: https://mike.kaply.com/2012/03/22/customizing-firefox- advanced-autoconfig-files/
The autoconfig file is a Javascript file, so I have provided exactly what you are looking for. You can use the code I provided to do different paths for lockPref based on the platform. Mike Kaply On Fri, May 26, 2017 at 2:37 AM, <[email protected]> wrote: > Hi Kaply, > > > > Thanks for the response. This solution will not help us. > > > > We have to keep the logic in normal format (.txt) and then go for > packaging. > > > > So, Please provide the simple logic like below. > > > > Example: > > > > //Sets Adobe Reader as default PDF-viewer > > pref("plugin.disable_full_page_plugin_for_types", ""); > > //Turn off FF integrated viewer > > pref("pdfjs.disabled", true); > > //Don´t warn if this will disable any of my add-ons > > pref("app.update.mode", 0); > > //disable default browser check at startup and the button > > lockPref("browser.shell.checkDefaultBrowser", false); > > //lockPref("pref.general.disable_button.default_browser", true); > > clearPref("pref.general.disable_button.default_browser"); > > pref("pref.general.disable_button.default_browser", false); > > > > > > //Ajay Kumar > > > > *From:* Kaply Consulting [mailto:[email protected]] > *Sent:* den 24 maj 2017 06:04 > *To:* Kumar Kondru <[email protected]> > *Cc:* Dipen Narendra Kumar <[email protected]>; Copus, > Scott <[email protected]>; [email protected] > > *Subject:* Re: [Mozilla Enterprise] Enable Remember History via config > > > > You can check the platform like this: > > Components.utils.import("resource://gre/modules/AppConstants.jsm"); > > if (AppConstants.platform == "macosx") > > See: > > https://dxr.mozilla.org/mozilla-central/source/ > toolkit/modules/AppConstants.jsm#151 > > Mike Kaply > > > > On Fri, May 19, 2017 at 5:26 AM, <[email protected]> wrote: > > Hi , > > > > I came here with one challenge i.e. we need to use the same config file on > Windows and MAC OS X. > > > > But, we need to disable remember password for Windows and should be > enabled for MAC OS X as follows. > > > > Here we need to use one logic which will find the OS platform and then > enabling or disable option will work. > > > > // Disables remembering passwords > > lockPref("signon.rememberSignons", false); > > > > Example:- > > > > If (OSplatfrom==Darwin) > > > > { > > lockPref("signon.rememberSignons", true); > > } > > > > else > > { lockPref("signon.rememberSignons", false); > > } > > > > > > *Regards,* > > *Ajay Kumar Kondru * > > *Client Applications* > > > > > > > > > > *From:* Dipen Narendra Kumar [mailto:[email protected]] > *Sent:* den 19 maj 2017 14:55 > *To:* Copus, Scott <[email protected]>; Kumar Kondru < > [email protected]>; [email protected] > *Subject:* RE: Enable Remember History via config > > > > There an even easier way to do this. > > > > I recommend using the Pref Helper created by the awesome Mike Kaply. See: > https://mike.kaply.com/2015/11/11/identifying-preferences- > names-in-firefox/ > > > > Cheers, > > > > Dipen > > > > *From:* Enterprise [mailto:[email protected] > <[email protected]>] *On Behalf Of *Copus, Scott > *Sent:* 15 May 2017 14:26 > *To:* [email protected]; [email protected] > *Subject:* Re: [Mozilla Enterprise] Enable Remember History via config > > > > Hi Ajay, > > > > There’s probably a better way to do this. If there is I hope somebody > chimes in. > > > > When I want to find a preference for a particular GUI setting I want to > change and Google fails to show me the light, I usually open two Firefox > windows side-by-side… one with the settings window open and the other with > the about:config window. I sort the about:config list by “Status” and then > scroll to the beginning of all the “user set” section. I’ll then > repeatedly change or toggle the setting in the GUI settings window while > watching what changes or appears/disappears in the about:config window. > Sometimes I have to scroll around a bit to find what I’m looking for. Hope > that helps. > > > > -- > > Scott Copus, Lab Systems Engineer > > Academic Technology | Western Kentucky University > > http://www.wku.edu/it/labs > > > > *From:* Enterprise [mailto:[email protected] > <[email protected]>] *On Behalf Of *[email protected] > *Sent:* Thursday, May 11, 2017 3:51 AM > *To:* [email protected] > *Subject:* [Mozilla Enterprise] Enable Remember History via config > > > > Hi Team, > > > > We are using Mozilla Firefox 45.9 in our environment with config file > (Mozilla.cfg) > > > > We need to enable it through config file. Please share the code line for > this. > > > > *Example*:- pref("plugins.notifyMissingFlash", false); > > > > lockPref("plugins.hide_infobar_for_outdated_plugin", true); > clearPref("plugins.update.url"); > > > > lockPref("datareporting.healthreport.service.enabled", false); > > > > lockPref("datareporting.policy.dataSubmissionEnabled", false); > > > > > > > > > *Regards,* > > *Ajay Kumar Kondru * > > *Client Applications* > > > > > ------------------------------ > > Past results are not necessarily indicative of future results. Commodity > interest trading involves substantial risk of loss. This e-mail, and any > attachment, is confidential and for the intended recipient(s) only, subject > to important disclaimers and conditions available at > http://www.harmonic-capital.com/disclaimer . This communication is not an > offer (or solicitation of an offer) to buy or sell products or investment > advisory services that may be mentioned. Harmonic Capital Partners LLP > (Harmonic) is authorised and regulated by the Financial Conduct Authority. > Harmonic is registered in England and Wales with company registration > number OC303094, and registered office at 3 Lombard Street, London, EC3V > 9AA, UK. > > > > The information contained in this e-mail message may be privileged, > confidential, and protected from disclosure. Any unauthorized use, > printing, copying, disclosure or dissemination of this communication may be > subject to legal restriction or sanction. If you think that you have > received this e-mail message in error, please reply to the sender and > delete this message from your computer. > > > _______________________________________________ > Enterprise mailing list > [email protected] > https://mail.mozilla.org/listinfo/enterprise > > To unsubscribe from this list, please visit https://mail.mozilla.org/ > listinfo/enterprise or send an email to [email protected] > with a subject of "unsubscribe" > > >
_______________________________________________ Enterprise mailing list [email protected] https://mail.mozilla.org/listinfo/enterprise To unsubscribe from this list, please visit https://mail.mozilla.org/listinfo/enterprise or send an email to [email protected] with a subject of "unsubscribe"

