为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Write in handlers.json trough mozilla.cfg

  • 4 个回答
  • 2 人有此问题
  • 1 次查看
  • 最后回复者为 Mike Kaply

more options

Hello Everyone,

I'd like to deploy Firefox ESR 60.6.1 in my company (4000 computers) with PowerShell / SCMM package, but i'm having trouble to set a default software for .ica (citrix) extension . I'd like to auto check automaticaly the box (Remember my choice for "xxx", please see the screenshot, sorry for french btw) in order to make it easier for the users.

I know this parameter is written in handlers.json, but I was wondering if it can be set in the mozilla.cfg.

Thank you very much for your help.

Hello Everyone, I'd like to deploy Firefox ESR 60.6.1 in my company (4000 computers) with PowerShell / SCMM package, but i'm having trouble to set a default software for .ica (citrix) extension . I'd like to auto check automaticaly the box (Remember my choice for "xxx", please see the screenshot, sorry for french btw) in order to make it easier for the users. I know this parameter is written in handlers.json, but I was wondering if it can be set in the mozilla.cfg. Thank you very much for your help.

所有回复 (4)

more options

Screenshot

more options

There is a way to do this via autoconfig

https://mike.kaply.com/2013/05/15/setting-default-application-handlers/

But you'll need to flip the sandbox pref (or use the ESR)

I'm investigating adding this to policy.

more options

Thanks Mike !

I've probably get something wrong, cause it does not seems to work for me. May I ask you a little more of your expertise ?

I've added the whole script with those two modified lines below in the autoconfig.js, that I copy directly in the default folder during the deployment of Firefox ESR 60.6.1.


// Change "image/tiff" the mime type you want to set the preference for var realMIMEInfo = mimeService.getFromTypeAndExtension("ica", "receiver");

// This should be the path to the .app file on Mac or the EXE on Windows file.initWithPath("C:\Program Files (x86)\Citrix\ICA Client\wfcrun32.exe");

Thank you very much !

more options

So get fromtype and extension should be:

"application/x-ica", "ica"


And you should use double slashes for the initWithPath.