為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Write in handlers.json trough mozilla.cfg

  • 4 回覆
  • 2 有這個問題
  • 29 次檢視
  • 最近回覆由 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

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.