Trang web này sẽ có chức năng hạn chế trong khi chúng tôi trải qua bảo trì để cải thiện trải nghiệm của bạn. Nếu một bài viết không giải quyết được vấn đề của bạn và bạn muốn đặt câu hỏi, chúng tôi có cộng đồng hỗ trợ của chúng tôi đang chờ để giúp bạn tại @FirefoxSupport trên Twitter và /r/firefox trên Reddit.

Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm

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

  • 3 trả lời
  • 1 gặp vấn đề này
  • 7 lượt xem
  • Trả lời mới nhất được viết bởi 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!

Tất cả các câu trả lời (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.