본 사이트는 여러분의 사용자 경험을 개선하기 위해 유지 보수를 진행하는 동안 기능이 제한됩니다. 도움말로 문제가 해결되지 않고 질문을 하고 싶다면 Twitter의 @FirefoxSupport 및 Reddit의 /r/firefox 채널을 활용하세요.

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

Set the default PDF application to "Preview in Firefox" through a preferences file

  • 3 답장
  • 1 이 문제를 만남
  • 7 보기
  • 최종 답변자: chazbot7

more options

I work for a company that uses Firefox for Linux across hundreds of locations. Currently, we have all locations set to use Adobe Reader as the default PDF viewer. From what I can see, this changes the "plugin.disable_full_page_plugin_for_types" value to "" in prefs.js.

We'd like to set all locations to use the built in "Preview in Firefox" option. When looking at the prefs.js file, selecting this option changes the value of the above preference to "applications/pdf". However, this value applies to "Preview in Firefox" and "Save File". When I try to simply overwrite the prefs.js file at a location using that new value, it defaults to "Save File" rather than "Preview in Firefox".

Obviously, this value can be corrected in the GUI by selecting it in Preferences > Applications. However, to ensure we actually get all locations successfully switched over, we'd like a more controlled process that takes the users out of the equation. Is there another preferences file that controls the preferred application to use for file types that we can overwrite?

System specs: Linux - CentOS 5. Firefox v 38.2.0-4.el5.centos

Thanks in advance!

I work for a company that uses Firefox for Linux across hundreds of locations. Currently, we have all locations set to use Adobe Reader as the default PDF viewer. From what I can see, this changes the "plugin.disable_full_page_plugin_for_types" value to "" in prefs.js. We'd like to set all locations to use the built in "Preview in Firefox" option. When looking at the prefs.js file, selecting this option changes the value of the above preference to "applications/pdf". However, this value applies to "Preview in Firefox" and "Save File". When I try to simply overwrite the prefs.js file at a location using that new value, it defaults to "Save File" rather than "Preview in Firefox". Obviously, this value can be corrected in the GUI by selecting it in Preferences > Applications. However, to ensure we actually get all locations successfully switched over, we'd like a more controlled process that takes the users out of the equation. Is there another preferences file that controls the preferred application to use for file types that we can overwrite? System specs: Linux - CentOS 5. Firefox v 38.2.0-4.el5.centos Thanks in advance!

모든 댓글 (3)

more options

I believe this is the same on Linux as on Windows: "download-handling preferences" are stored in the mimeTypes.rdf file, which is a difficult-to-read XML file in the user's profile folder. I don't know whether there is a convenient way to modify that file.

(By the way, it's not a good idea to overwrite prefs.js because it contains accumulated user data that can be difficult to restore, such as pinned tiles and blocked sites on the new tab page, toolbar layout, and other customization data.)

A good source on customization is Mike Kaply. For example:

more options

You can use a mozilla.cfg file in the Firefox program folder to lock prefs or specify new (default) values.

Place a local-settings.js file in the defaults\pref folder where also the channel-prefs.js file is located to specify using mozilla.cfg.

pref("general.config.filename", "mozilla.cfg");
pref("general.config.obscure_value", 0);

These functions can be used in the mozilla.cfg file:

defaultPref();	// set new default value
pref();		// set pref, allow changes in current session
lockPref();	// lock pref, disallow changes

See:

more options

@jscher2000 and @cor-el thank you for the help! It looks like there might be a few different ways to do this, I'll get crackin at it today. Mike Kaply's site is a huge help.