码迷,mamicode.com
首页 > 其他好文 > 详细

octet-stream

时间:2015-09-03 08:09:46      阅读:245      评论:0      收藏:0      [点我收藏+]

标签:

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.

octet-stream

标签:

原文地址:http://www.cnblogs.com/jvava/p/4779860.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!