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

搜尋 Mozilla 技術支援網站

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

了解更多

Linux: downloaded files open with the wrong application

  • 2 回覆
  • 22 有這個問題
  • 11 次檢視
  • 最近回覆由 hemmung

more options

I'm using Firefox 31.0 on Ubuntu 14.04.

I've downloaded a DJVU-file. The filetype association on my PC is to open it in evince. However, when I use the drop-down download menu in the toolbar, where the last downloads are listed, to open the DJVU file, it is opened with gedit. If I select "Show All Downloads" and double-click the downloaded DJVU in the window that opens up, then it is correctly opened in evince.

What happens here? Why does Firefox use gedit for the drop-down list but the correct application in the library window? How can I fix this?

I'm using Firefox 31.0 on Ubuntu 14.04. I've downloaded a DJVU-file. The filetype association on my PC is to open it in evince. However, when I use the drop-down download menu in the toolbar, where the last downloads are listed, to open the DJVU file, it is opened with gedit. If I select "Show All Downloads" and double-click the downloaded DJVU in the window that opens up, then it is correctly opened in evince. What happens here? Why does Firefox use gedit for the drop-down list but the correct application in the library window? How can I fix this?

所有回覆 (2)

more options

Hello there,

Lets try to fix this. Follow the following steps:

1.  Click the menu button in New Fx Menu and choose Options
2.  Select the Applications panel.
3.  The Applications panel will display. Select the type of file for which you 
      want to change the default action. (in your case DJVU-file)
 
4.  The Action column will give you a drop-down menu, with options on 
      action to take, whenever you click that type of file. 

https://support.cdn.mozilla.net/media/uploads/images/2014-08-09-07-28-26-cb20cb.png


       Always ask: will prompt you to select what action you want Firefox   
        to take when you click on that type of file. This can be useful if Firefox 
        is automatically saving a file type or is always opening it with a certain  
        program and you want to be asked what to do.
        Save File: will always save the file to your computer using the 
        Downloads window, whenever you click that type of file.
        Open the file with an application or plugin of your choosing. 
5.  Click OK to close the Options window after making changes. 

You can also refer to this article https://support.mozilla.org/en-US/kb/change-firefox-behavior-when-open-file for more info.

Hope it helps.

more options

Thank you for your reply!

Well, this is not precisely what I wanted to do: my option in the Application settings is set to "Always ask", and this is what I would like Firefox to do. However, after the file is saved, I expect that it is opened with my system's default application for DJVU files, but Firefox just keeps opening it with the text editor (gedit) if I click on the file in the download drop-down menu in the toolbar.

Meanwhile, I have figured out how to fix it, however I find that this should work from the beginning without having to fix it.

The problem was that in the application settings there was no default application set for that file type, although my system specifies one (see first picture).

After I have selected "User other..." and set it to my preferred programme for DJVU files (evince), the menu has changed (see second picture). Now, even if I leave the option "Always ask" set, the correct application is used for opening that file type.

There are several questions which I am wondering about: 1) Why is this not set to system's default application if the user has not manually specified anything else? I think using the text editor instead is not the best option. 2) Why is the behavior in the downloads window (="Library") different from the drop-down menu? Even with the default programme not set in the applications preferences, clicking on the file in the downloads windows opens system's default programme.

I am not sure if this is the desired behavior, for me it seems slightly inconsistent.