搜尋 Mozilla 技術支援網站

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

Learn More

mimitypes not working on other profiles

  • 3 回覆
  • 1 有這個問題
  • 5 次檢視
  • 最近回覆由 bazzard112

more options

Hi,

I have a question regarding the usage of the mimeTypes.rdf file which stores the actions Firefox has to execute when clicking / download a particular file. In this case I want to link an action when opening a PDF file and I want to use the Acrobat reader (in Firefox) (with the option Firefox renders the file in the browser instead of downloading the and opening it in the Acrobat application.

Now, when I set this for one user, this is working fine, but I'm the administrator of a Terminal server and I want to set this for all users. So what I did: On profile A I configured the correct settings and copied the file mimeTypes.rdf. I made a script which runs a logon and places the mimeTypes.rdf of Profile A to the correct place in the users profile (which is working great) Now the problem is that all settings are changed to: Adobe Acrobat (default) instead of Adobe Acrobat (in Firefox). Off course all paths to Adobe are the same since we are working on a Terminal server.

System environment: Windows server 2012 R2 Terminal server. Firefox 30.0

Hi, I have a question regarding the usage of the mimeTypes.rdf file which stores the actions Firefox has to execute when clicking / download a particular file. In this case I want to link an action when opening a PDF file and I want to use the Acrobat reader (in Firefox) (with the option Firefox renders the file in the browser instead of downloading the and opening it in the Acrobat application. Now, when I set this for one user, this is working fine, but I'm the administrator of a Terminal server and I want to set this for all users. So what I did: On profile A I configured the correct settings and copied the file mimeTypes.rdf. I made a script which runs a logon and places the mimeTypes.rdf of Profile A to the correct place in the users profile (which is working great) Now the problem is that all settings are changed to: Adobe Acrobat (default) instead of Adobe Acrobat (in Firefox). Off course all paths to Adobe are the same since we are working on a Terminal server. System environment: Windows server 2012 R2 Terminal server. Firefox 30.0

被選擇的解決方法

Could you also compare prefs.js between the two profiles? Since the built-in PDF viewer is a feature of the program, there might be a corresponding change to one or more preferences when you switch to a plugin.

從原來的回覆中察看解決方案 👍 2

所有回覆 (3)

more options

On profile A I configured the correct settings and copied the file mimeTypes.rdf. ----> do these settings include the default preferences?

Mimetypes set the default program to open up afaik, but if Firefox is open the applicaiton will not load the changed file. Since it is replacing successfully, if you restart one of the computer's that the changes are being applied to, do you see the default change?

more options

選擇的解決方法

Could you also compare prefs.js between the two profiles? Since the built-in PDF viewer is a feature of the program, there might be a corresponding change to one or more preferences when you switch to a plugin.

more options

Sorry for the late reply.

jscher2000 thanks for the tip, I added the prefs.js to the profiles and now it's working!

Thank you.

By the way, this is the script I used:

@echo off SET "SEARCH=%appdata%" SET "BESTAND=mimeTypes.rdf" for /f %%F in ('dir /s %SEARCH%\%BESTAND% /s /b') do set p=%%~dpF copy \\ad\netlogon\firefox_latest\mimeTypes.rdf %p% /Y copy \\ad\netlogon\firefox_latest\prefs.js %p% /Y