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

How can I change the default application for a content type?

  • 8 trả lời
  • 5 gặp vấn đề này
  • 3 lượt xem
  • Trả lời mới nhất được viết bởi Jonathan Ryshpan

more options

Running a version of Linux, the default application for PDF files is "Use Document Viewer (default)", which appears to be /usr/bin/evince. I'd much prefer to use /usr/bin/okular; how can I change the default. This question is NOT about how to change the function that is automatically applied when I access a link, in this case "Preview in Firefox", but rather to the default application that I can select when I download a file being viewed in Firefox's previewer.

Running a version of Linux, the default application for PDF files is "Use Document Viewer (default)", which appears to be /usr/bin/evince. I'd much prefer to use /usr/bin/okular; how can I change the default. This question is NOT about how to change the function that is automatically applied when I access a link, in this case "Preview in Firefox", but rather to the default application that I can select when I download a file being viewed in Firefox's previewer.

Giải pháp được chọn

This is real progress, a solution to the problem as posted. The command: xdg-mime default okularApplication_pdf.desktop application/pdf makes okular the default.

However when I added okular to the choices for applications in:

  • Edit>Preferences>Applications>PDF

the popup box that appears when I click Download on the preview page changed. The pulldown menu that appears next to "Open with" used to have 3 entries:

  1. Document Viewer (default)
  2. Acroread
  3. Other

Now it has only 2:

  1. Okular (Default)
  2. Other

I'd like it to read

  1. Okular (Default)
  2. Acroread
  3. Other

How can I control the entries in this pulldown list?

Also, how can I make the default choice in the popup box be

  • Open With <whatever> , rather than
  • Save File ?
Đọc câu trả lời này trong ngữ cảnh 👍 1

Tất cả các câu trả lời (8)

more options

Firefox(orange) button > Tools > Options > Application

  • Search for "PDF" > Action "Alway Ask"
more options

This changes the application that is automatically applied, not the default application.

more options

You can set the default application in Nautilus by right-clicking a pdf file and open the Properties and go to the Open with tab.

  • Nautilus: right-click file > Properties > Open with

See also:

  • /usr/share/applications/mimeinfo.cache and defaults.list
  • ~/.local/share/applications/mimeapps.list

If you choose an application via "Use other" and browse to okular (/usr/bin/okular) and set that as the default then it should stay in that list as a choice if you select another application.

Được chỉnh sửa bởi cor-el vào

more options

Giải pháp được chọn

This is real progress, a solution to the problem as posted. The command: xdg-mime default okularApplication_pdf.desktop application/pdf makes okular the default.

However when I added okular to the choices for applications in:

  • Edit>Preferences>Applications>PDF

the popup box that appears when I click Download on the preview page changed. The pulldown menu that appears next to "Open with" used to have 3 entries:

  1. Document Viewer (default)
  2. Acroread
  3. Other

Now it has only 2:

  1. Okular (Default)
  2. Other

I'd like it to read

  1. Okular (Default)
  2. Acroread
  3. Other

How can I control the entries in this pulldown list?

Also, how can I make the default choice in the popup box be

  • Open With <whatever> , rather than
  • Save File ?
more options

You can (temporarily) set the default to Acroread like I wrote above by using "Use other" and browse to the Acroread program. That should add Acroread to the list of choices when you change the setting to one of the other available choices.

more options

If only...

Maybe I don't understand. Here's what I did:

  • Prime Firefox to show acroread in the pull-down menu:
  1. Open foo.pdf in the Firefox previewer
  2. Click the download icon in the previewer; a pop-up window appears.
  3. Open the pull-down menu in the pop-up window
  4. Choose "Other..."; a file chooser window appears
  5. Choose /usr/bin/acroread in the pull-down window
  6. Select "Open With" in the pop-up window
  7. Click OK
  • Test the result:
  1. Open foo.pdf in the Firefox previewer
  2. Click the download icon in the previewer; a pop-up window appears.
  3. Open the pull-down menu in the pop-up window
  4. I would expect to see "Acroread" in the pull-down window; no such luck.

Thanks much for your assistance.

more options

Try to make this change in the PDF setting in Edit > Preferences > Applications

more options

Today I started Firefox and found that things are working as desired. (Because of the restart?) Thanks for your help.