firefox突然变成了用gedit打开pdf文件,

 

Where the link to http://download.jw.org/files/media_m...E_20150201.pdf caused the problem of the file being offered to be opened with gedit to occur, the link to http://www.analysis.im/uploads/seminar/pdf-sample.pdf did not and offered me to open it with document viewer as expected.

The difference is the server configuration. The first file is offered with the application/octet-stream mime-type, the latter with application/pdf mime-type as it should be.
To prevent Firefox from opening every file offered with the general application/octet-stream mime-type with gedit you should alter the following files:

  • ~/.local/share/applications/mimeapps.list
  • ~/.config/mimeapps.list



Find the following line in those files and remove it.

application/octet-stream=gedit.desktop;

Save the file, restart Firefox and enjoy your downloads again.

相关文章:

  • 2021-06-20
  • 2022-02-16
  • 2021-08-06
  • 2022-12-23
  • 2021-12-12
  • 2022-12-23
  • 2022-01-04
猜你喜欢
  • 2022-12-23
  • 2021-03-30
  • 2022-12-23
  • 2022-02-19
  • 2021-12-02
  • 2021-08-11
相关资源
相似解决方案